38 void UI_RADIO::destroy()
55 if (
bmap_ids[RADIO_DISABLED_MARKED] != -1 ) {
61 if (
bmap_ids[RADIO_DISABLED_CLEAR] != -1 ) {
68 if ( position == 0 ) {
70 if (
bmap_ids[RADIO_UP_MARKED] != -1 ) {
76 if (
bmap_ids[RADIO_UP_CLEAR] != -1 ) {
84 if (
bmap_ids[RADIO_DOWN_MARKED] != -1 ) {
90 if (
bmap_ids[RADIO_DOWN_CLEAR] != -1 ) {
102 if (position == 0 ) {
139 void UI_RADIO::process(
int focus)
141 int OnMe, oldposition;
153 oldposition = position;
176 if ( (oldposition == 1) && OnMe )
178 if ( (oldposition == 2) && focus )
186 if (pressed_down && (flag == 0)) {
190 while (tmp !=
this) {
193 if ((tmpr->group ==
group) && tmpr->flag) {
195 tmpr->pressed_down = 0;
GLfloat GLfloat GLfloat GLfloat h
__inline void gr_circle(int xc, int yc, int d, int resize_mode=GR_RESIZE_FULL)
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)
__inline void gr_set_clip(int x, int y, int w, int h, int resize_mode=GR_RESIZE_FULL)
void create(UI_WINDOW *wnd, char *_text, int _x, int _y, int _state, int _group)
GLint GLint GLint GLint GLint x
GLubyte GLubyte GLubyte GLubyte w
ubyte keyd_pressed[NUM_KEYS]
void gr_bitmap(int _x, int _y, int resize_mode)
void(* user_function)(void)
void gr_set_font(int fontnum)
UI_GADGET * selected_gadget