4 #include "bcbitmap.inc"
5 #include "bcsubwindow.h"
11 class BC_Button
: public BC_SubWindow
14 BC_Button(int x
, int y
, VFrame
**data
);
15 BC_Button(int x
, int y
, int w
, VFrame
**data
);
18 friend class BC_GenericButton
;
20 virtual int handle_event() { return 0; };
21 int repeat_event(int64_t repeat_id
);
22 virtual int draw_face();
27 virtual int set_images(VFrame
**data
);
28 int cursor_enter_event();
29 int cursor_leave_event();
30 int button_press_event();
31 int button_release_event();
32 int cursor_motion_event();
33 int update_bitmaps(VFrame
**data
);
34 int reposition_window(int x
, int y
);
35 void set_underline(int number
);
50 class BC_GenericButton
: public BC_Button
53 BC_GenericButton(int x
, int y
, char *text
, VFrame
**data
= 0);
54 BC_GenericButton(int x
, int y
, int w
, char *text
, VFrame
**data
= 0);
55 int set_images(VFrame
**data
);
62 class BC_OKButton
: public BC_Button
65 BC_OKButton(int x
, int y
);
66 BC_OKButton(BC_WindowBase
*parent_window
);
67 virtual int resize_event(int w
, int h
);
68 virtual int handle_event();
69 virtual int keypress_event();
72 class BC_CancelButton
: public BC_Button
75 BC_CancelButton(int x
, int y
);
76 BC_CancelButton(BC_WindowBase
*parent_window
);
77 virtual int resize_event(int w
, int h
);
78 virtual int handle_event();
79 virtual int keypress_event();