summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_widget.cpp
blob: cf99c418936966c1da235bc09f16a079534011e1 (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


#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));
}