33#define WINDOW_TITLE_HEIGHT 10
35#define WINDOW_TITLE_HEIGHT 20
214#define set_action(id, action_callback) \
215 get_widget_pointer_from_main_list(id)->action = action_callback
217#define set_key(id, keyb) \
218 get_widget_pointer_from_main_list(id)->key = keyb
220#define set_mod(id, mod) \
221 get_widget_pointer_from_main_list(id)->mod = mod
225 struct widget *____gui = get_widget_pointer_from_main_list(id); \
226 set_wstate(____gui, FC_WS_NORMAL); \
231 struct widget *____gui = get_widget_pointer_from_main_list(id); \
232 set_wstate(____gui , FC_WS_DISABLED); \
236 clear_wflag( get_widget_pointer_from_main_list(id), WF_HIDDEN)
239 set_wflag(get_widget_pointer_from_main_list(id), WF_HIDDEN)
246#define draw_widget_info_label() redraw_widget_info_label(NULL);
273 pwidget->
resize(pwidget, w, h);
278 return pwidget->
redraw(pwidget);
293 pwidget->
flush(pwidget);
305#define FREEWIDGET(pwidget) \
307 widget_free(&pwidget); \
310#define draw_frame_inside_widget_on_surface(pwidget , pdest) \
312 draw_frame(pdest, pwidget->size.x, pwidget->size.y, pwidget->size.w, pwidget->size.h); \
315#define draw_frame_inside_widget(pwidget) \
316 draw_frame_inside_widget_on_surface(pwidget , pwidget->dst->surface)
318#define draw_frame_around_widget_on_surface(pwidget , pdest) \
320 draw_frame(pdest, pwidget->size.x - ptheme->FR_Left->w, pwidget->size.y - ptheme->FR_Top->h, \
321 pwidget->size.w + ptheme->FR_Left->w + ptheme->FR_Right->w,\
322 pwidget->size.h + ptheme->FR_Top->h + ptheme->FR_Bottom->h); \
325#define draw_frame_around_widget(pwidget) \
326 draw_frame_around_widget_on_surface(pwidget, pwidget->dst->surface)
372#define del_widget_from_gui_list(__gui) \
374 del_widget_pointer_from_gui_list(__gui); \
378#define del_ID_from_gui_list(id) \
380 struct widget *___ptmp = get_widget_pointer_from_main_list(id); \
381 del_widget_pointer_from_gui_list(___ptmp); \
382 FREEWIDGET(___ptmp); \
385#define move_ID_to_front_of_gui_list(id) \
386 move_widget_to_front_of_gui_list( \
387 get_widget_pointer_from_main_list(id))
389#define del_group(begin_group_widget_list, end_group_widget_list) \
391 del_group_of_widgets_from_gui_list(begin_group_widget_list, \
392 end_group_widget_list); \
393 begin_group_widget_list = NULL; \
394 end_group_widget_list = NULL; \
397#define enable_group(begin_group_widget_list, end_group_widget_list) \
398 set_group_state(begin_group_widget_list, \
399 end_group_widget_list, FC_WS_NORMAL)
401#define disable_group(begin_group_widget_list, end_group_widget_list) \
402 set_group_state(begin_group_widget_list, end_group_widget_list, \
struct canvas int int struct sprite int int int int height
struct canvas int int struct sprite int int int width
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
struct widget * begin_widget_list
struct widget * end_widget_list