4 #include "bcbitmap.inc"
5 #include "bcsubwindow.h"
12 #define TOGGLE_CHECKED 2
14 #define TOGGLE_CHECKEDHI 4
16 class BC_Toggle
: public BC_SubWindow
19 BC_Toggle(int x
, int y
,
23 int bottom_justify
= 0,
24 int font
= MEDIUMFONT
,
28 virtual int handle_event() { return 0; };
30 int set_value(int value
, int draw
= 1);
31 void set_select_drag(int value
);
32 int update(int value
, int draw
= 1);
33 void reposition_window(int x
, int y
);
36 int set_images(VFrame
**data
);
37 int cursor_enter_event();
38 int cursor_leave_event();
39 // In select drag mode these 3 need to be overridden and called back to.
40 virtual int button_press_event();
41 virtual int button_release_event();
42 int cursor_motion_event();
43 int repeat_event(int64_t repeat_id
);
54 int toggle_x
, toggle_y
, text_x
, text_y
, text_w
, text_h
, text_line
;
61 class BC_Radial
: public BC_Toggle
68 int font
= MEDIUMFONT
,
72 class BC_CheckBox
: public BC_Toggle
79 int font
= MEDIUMFONT
,
85 int font
= MEDIUMFONT
,
87 virtual int handle_event();
91 class BC_Label
: public BC_Toggle
97 int font
= MEDIUMFONT
,