forked from pwiecz/go-fltk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.h
32 lines (27 loc) · 1.41 KB
/
button.h
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
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GButton GButton;
typedef struct Fl_Button Fl_Button;
typedef struct GCheck_Button GCheck_Button;
typedef struct GRadio_Button GRadio_Button;
typedef struct GToggle_Button GToggle_Button;
typedef struct GLight_Button GLight_Button;
typedef struct GReturn_Button GReturn_Button;
typedef struct GRadio_Round_Button GRadio_Round_Button;
extern GButton* go_fltk_new_Button(int x, int y, int w, int h, const char* label);
extern char go_fltk_Button_value(Fl_Button* b);
extern void go_fltk_Button_set_value(Fl_Button* b, int value);
extern void go_fltk_Button_set_down_box(Fl_Button* b, int value);
extern void go_fltk_Button_set_shortcut(Fl_Button *b, int shortcut);
extern int go_fltk_Button_shortcut(Fl_Button *b);
extern GCheck_Button *go_fltk_new_Check_Button(int x, int y, int w, int h, const char *label);
extern GRadio_Button *go_fltk_new_Radio_Button(int x, int y, int w, int h, const char *label);
extern GToggle_Button *go_fltk_new_Toggle_Button(int x, int y, int w, int h, const char *label);
extern GLight_Button *go_fltk_new_Light_Button(int x, int y, int w, int h, const char *label);
extern GReturn_Button *go_fltk_new_Return_Button(int x, int y, int w, int h, const char *label);
extern GRadio_Round_Button *go_fltk_new_Radio_Round_Button(int x, int y, int w, int h, const char *label);
#ifdef __cplusplus
}
#endif