-
Notifications
You must be signed in to change notification settings - Fork 24
/
flex.cxx
38 lines (25 loc) · 1.05 KB
/
flex.cxx
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
#include "flex.h"
#include <FL/Fl_Flex.H>
#include "event_handler.h"
class GFlex : public EventHandler<Fl_Flex> {
public:
GFlex(int x, int y, int w, int h, const char* label)
: EventHandler<Fl_Flex>(x, y, w, h, label) {}
};
GFlex* go_fltk_new_Flex(int x, int y, int w, int h, const char* label) {
return new GFlex(x, y, w, h, label);
}
void go_fltk_Flex_set_gap(Fl_Flex* flex, int spacing) {
flex->gap(spacing);
}
void go_fltk_Flex_fixed(Fl_Flex* flex, Fl_Widget* w, int size) {
flex->fixed(w, size);
}
void go_fltk_Flex_end(Fl_Flex *flex) { flex->end(); }
int go_fltk_Flex_spacing(Fl_Flex* flex) { return flex->spacing(); }
void go_fltk_Flex_set_spacing(Fl_Flex* flex, int spacing) { flex->spacing(spacing); }
int go_fltk_Flex_margin(Fl_Flex* flex) { return flex->margin(); }
void go_fltk_Flex_set_margin(Fl_Flex* flex, int margin, int gap) { flex->margin(margin, gap); }
void go_fltk_Flex_layout(Fl_Flex* flex) { flex->layout(); }
const unsigned char go_FL_FLEX_COLUMN = Fl_Flex::COLUMN;
const unsigned char go_FL_FLEX_ROW = Fl_Flex::ROW;