summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_widget.cpp
blob: 8a9e897b22736189aa1b9f64c24f401f1eeb7d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45


#include <FL/Fl_Widget.H>
#include "c_fl_widget.h"


int fl_widget_get_box(my_fl_widget w) {
    return reinterpret_cast<Fl_Widget*>(w)->box();
}


void fl_widget_set_box(my_fl_widget w, int b) {
    reinterpret_cast<Fl_Widget*>(w)->box(static_cast<Fl_Boxtype>(b));
}


int fl_widget_get_label_font(my_fl_widget w) {
    return reinterpret_cast<Fl_Widget*>(w)->labelfont();
}


void fl_widget_set_label_font(my_fl_widget w, int f) {
    reinterpret_cast<Fl_Widget*>(w)->labelfont(static_cast<Fl_Font>(f));
}


int fl_widget_get_label_size(my_fl_widget w) {
    return reinterpret_cast<Fl_Widget*>(w)->labelsize();
}


void fl_widget_set_label_size(my_fl_widget w, int s) {
    reinterpret_cast<Fl_Widget*>(w)->labelsize(static_cast<Fl_Fontsize>(s));
}


int fl_widget_get_label_type(my_fl_widget w) {
    return reinterpret_cast<Fl_Widget*>(w)->labeltype();
}


void fl_widget_set_label_type(my_fl_widget w, int l) {
    reinterpret_cast<Fl_Widget*>(w)->labeltype(static_cast<Fl_Labeltype>(l));
}