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
);
32 static void calculate_extents(BC_WindowBase
*gui
,
47 int set_images(VFrame
**data
);
48 void set_underline(int number
);
49 int cursor_enter_event();
50 int cursor_leave_event();
51 // In select drag mode these 3 need to be overridden and called back to.
52 virtual int button_press_event();
53 virtual int button_release_event();
54 int cursor_motion_event();
55 int repeat_event(int64_t repeat_id
);
72 char caption
[BCTEXTLEN
];
77 // Start of text background
82 // Width of text background
95 class BC_Radial
: public BC_Toggle
102 int font
= MEDIUMFONT
,
106 class BC_CheckBox
: public BC_Toggle
113 int font
= MEDIUMFONT
,
119 int font
= MEDIUMFONT
,
121 virtual int handle_event();
127 class BC_Label
: public BC_Toggle
133 int font
= MEDIUMFONT
,