Rev 6479 | Rev 6490 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6479 | Rev 6482 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | /* stay at correct value */ |
28 | /* stay at correct value */ |
Line 29... | Line 29... | ||
29 | 29 | ||
30 | KOLIBRI_NUM_GUI_ELEMENTS |
30 | KOLIBRI_NUM_GUI_ELEMENTS |
Line -... | Line 31... | ||
- | 31 | }; |
|
- | 32 | ||
31 | }; |
33 | #define X_Y(x,y) (((x)<<16)|(y)) |
32 | 34 | ||
33 | /* Linked list which connects together all the elements drawn inside a GUI window */ |
35 | /* Linked list which connects together all the elements drawn inside a GUI window */ |
34 | typedef struct{ |
36 | typedef struct{ |
35 | enum KOLIBRI_GUI_ELEMENT_TYPE type; |
37 | enum KOLIBRI_GUI_ELEMENT_TYPE type; |
Line 69... | Line 71... | ||
69 | #include "kolibri_progressbar.h" |
71 | #include "kolibri_progressbar.h" |
70 | #include "kolibri_frame.h" |
72 | #include "kolibri_frame.h" |
71 | #include "kolibri_scrollbar.h" |
73 | #include "kolibri_scrollbar.h" |
72 | #include "kolibri_statictext.h" |
74 | #include "kolibri_statictext.h" |
73 | #include "kolibri_optionbox.h" |
75 | #include "kolibri_optionbox.h" |
- | 76 | #include "kolibri_menubar.h" |
|
Line 74... | Line -... | ||
74 | - | ||
Line 75... | Line 77... | ||
75 | #define X_Y(x,y) (((x)<<16)|(y)) |
77 | |
Line 127... | Line 129... | ||
127 | 129 | ||
128 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].redraw_fn = (cb_elem_boxlib)option_box_draw; |
130 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].redraw_fn = (cb_elem_boxlib)option_box_draw; |
129 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].mouse_fn = (cb_elem_boxlib)option_box_mouse; |
131 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].mouse_fn = (cb_elem_boxlib)option_box_mouse; |
Line -... | Line 132... | ||
- | 132 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].key_fn = NULL; |
|
- | 133 | ||
- | 134 | kolibri_gui_op_table[KOLIBRI_MENU_BAR].redraw_fn = (cb_elem_boxlib)menu_bar_draw; |
|
- | 135 | kolibri_gui_op_table[KOLIBRI_MENU_BAR].mouse_fn = (cb_elem_boxlib)menu_bar_mouse; |
|
130 | kolibri_gui_op_table[KOLIBRI_OPTIONGROUP].key_fn = NULL; |
136 | kolibri_gui_op_table[KOLIBRI_MENU_BAR].key_fn = NULL; |
131 | 137 | ||
Line 132... | Line 138... | ||
132 | debug_board_printf("KOLIBRI_OPTIONGROUP (%x,%x,%x)\n", option_box_draw,option_box_mouse,0); |
138 | debug_board_printf("KOLIBRI_MENU_BAR (%x,%x,%x)\n", menu_bar_draw,menu_bar_mouse,menu_bar_activate); |
133 | } |
139 | } |