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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef FL_WIDGET_GUARD
#define FL_WIDGET_GUARD
typedef void* WIDGET;
extern "C" void widget_set_draw_hook(WIDGET w, void * d);
extern "C" void widget_set_handle_hook(WIDGET w, void * h);
extern "C" WIDGET new_fl_widget(int x, int y, int w, int h, char* label);
extern "C" void free_fl_widget(WIDGET w);
extern "C" void * fl_widget_get_user_data(WIDGET w);
extern "C" void fl_widget_set_user_data(WIDGET w, void * d);
extern "C" void fl_widget_activate(WIDGET w);
extern "C" void fl_widget_deactivate(WIDGET w);
extern "C" int fl_widget_active(WIDGET w);
extern "C" int fl_widget_active_r(WIDGET w);
extern "C" void fl_widget_clear_active(WIDGET w);
extern "C" unsigned int fl_widget_changed(WIDGET w);
extern "C" void fl_widget_clear_changed(WIDGET w);
extern "C" void * fl_widget_get_parent(WIDGET w);
extern "C" int fl_widget_contains(WIDGET w, WIDGET i);
extern "C" unsigned int fl_widget_get_align(WIDGET w);
extern "C" void fl_widget_set_align(WIDGET w, unsigned int a);
extern "C" int fl_widget_get_box(WIDGET w);
extern "C" void fl_widget_set_box(WIDGET w, int b);
extern "C" const char* fl_widget_get_label(WIDGET w);
extern "C" void fl_widget_set_label(WIDGET w, const char* t);
extern "C" int fl_widget_get_label_font(WIDGET w);
extern "C" void fl_widget_set_label_font(WIDGET w, int f);
extern "C" int fl_widget_get_label_size(WIDGET w);
extern "C" void fl_widget_set_label_size(WIDGET w, int s);
extern "C" int fl_widget_get_label_type(WIDGET w);
extern "C" void fl_widget_set_label_type(WIDGET w, int l);
extern "C" void fl_widget_set_callback(WIDGET w, void * cb);
extern "C" int fl_widget_get_x(WIDGET w);
extern "C" int fl_widget_get_y(WIDGET w);
extern "C" int fl_widget_get_w(WIDGET w);
extern "C" int fl_widget_get_h(WIDGET w);
extern "C" void fl_widget_size(WIDGET w, int d, int h);
extern "C" void fl_widget_position(WIDGET w, int x, int y);
extern "C" void fl_widget_set_image(WIDGET w, void * img);
extern "C" void fl_widget_redraw(WIDGET w);
extern "C" void fl_widget_redraw_label(WIDGET w);
#endif
|