4 #include "bcbitmap.inc"
5 #include "bcsubwindow.h"
11 class BC_Toggle
: public BC_SubWindow
14 BC_Toggle(int x
, int y
,
18 int bottom_justify
= 0,
19 int font
= MEDIUMFONT
,
23 virtual int handle_event() { return 0; };
25 int set_value(int value
, int draw
= 1);
26 void set_select_drag(int value
);
27 int update(int value
, int draw
= 1);
28 void reposition_window(int x
, int y
);
31 void set_status(int value
);
34 int set_images(VFrame
**data
);
35 int cursor_enter_event();
36 int cursor_leave_event();
37 // In select drag mode these 3 need to be overridden and called back to.
38 virtual int button_press_event();
39 virtual int button_release_event();
40 int cursor_motion_event();
41 int repeat_event(int64_t repeat_id
);
57 char caption
[BCTEXTLEN
];
74 class BC_Radial
: public BC_Toggle
81 int font
= MEDIUMFONT
,
85 class BC_CheckBox
: public BC_Toggle
92 int font
= MEDIUMFONT
,
98 int font
= MEDIUMFONT
,
100 virtual int handle_event();
105 class BC_Label
: public BC_Toggle
111 int font
= MEDIUMFONT
,