blob: 9acc52f5ec144c75b0676c02e4ccf3832bc6098f (
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
46
47
48
49
50
51
52
53
54
55
|
#include <FL/Fl_Widget.H>
#include "c_fl_widget.h"
int fl_widget_get_box(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->box();
}
void fl_widget_set_box(WIDGET w, int b) {
reinterpret_cast<Fl_Widget*>(w)->box(static_cast<Fl_Boxtype>(b));
}
const char* fl_widget_get_label(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->label();
}
void fl_widget_set_label(WIDGET w, const char* t) {
reinterpret_cast<Fl_Widget*>(w)->copy_label(t);
}
int fl_widget_get_label_font(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labelfont();
}
void fl_widget_set_label_font(WIDGET w, int f) {
reinterpret_cast<Fl_Widget*>(w)->labelfont(static_cast<Fl_Font>(f));
}
int fl_widget_get_label_size(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labelsize();
}
void fl_widget_set_label_size(WIDGET w, int s) {
reinterpret_cast<Fl_Widget*>(w)->labelsize(static_cast<Fl_Fontsize>(s));
}
int fl_widget_get_label_type(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labeltype();
}
void fl_widget_set_label_type(WIDGET w, int l) {
reinterpret_cast<Fl_Widget*>(w)->labeltype(static_cast<Fl_Labeltype>(l));
}
|