36 void UI_CHECKBOX::destroy()
45 void UI_CHECKBOX::draw()
53 if (
bmap_ids[CBOX_DISABLED_MARKED] != -1 ) {
59 if (
bmap_ids[CBOX_DISABLED_CLEAR] != -1 ) {
66 if ( position == 0 ) {
68 if (
bmap_ids[CBOX_UP_MARKED] != -1 ) {
74 if (
bmap_ids[CBOX_UP_CLEAR] != -1 ) {
82 if (
bmap_ids[CBOX_DOWN_MARKED] != -1 ) {
88 if (
bmap_ids[CBOX_DOWN_CLEAR] != -1 ) {
100 if (position == 0 ) {
128 void UI_CHECKBOX::process(
int focus)
130 int OnMe, oldposition;
142 oldposition = position;
165 if ( (oldposition == 1) && OnMe ){
168 if ( (oldposition == 2) && focus ){
GLfloat GLfloat GLfloat GLfloat h
int bmap_ids[MAX_BMAPS_PER_GADGET]
__inline void gr_string(int x, int y, const char *string, int resize_mode=GR_RESIZE_FULL)
void base_create(UI_WINDOW *wnd, int _kind, int _x, int _y, int _w, int _h)
void gr_set_color_fast(color *dst)
void ui_draw_box_in(int x1, int y1, int x2, int y2)
void gr_set_bitmap(int bitmap_num, int alphablend_mode, int bitblt_mode, float alpha)
void ui_draw_box_out(int x1, int y1, int x2, int y2)
void set_state(int _state)
__inline void gr_set_clip(int x, int y, int w, int h, int resize_mode=GR_RESIZE_FULL)
GLint GLint GLint GLint GLint x
void create(UI_WINDOW *wnd, char *_text, int _x, int _y, int _state)
GLubyte GLubyte GLubyte GLubyte w
ubyte keyd_pressed[NUM_KEYS]
void gr_bitmap(int _x, int _y, int resize_mode)
void ui_string_centered(int x, int y, char *s)
void(* user_function)(void)
void gr_set_font(int fontnum)
UI_GADGET * selected_gadget