forked from KolibriOS/kolibrios
forget file
git-svn-id: svn://kolibrios.org@6396 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
191083b6c3
commit
780e03d785
@ -37,11 +37,14 @@ struct kolibri_window_element {
|
|||||||
struct kolibri_window_element *next, *prev;
|
struct kolibri_window_element *next, *prev;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
typedef void (*cb_elem_boxlib)(void *) __attribute__((__stdcall__));
|
||||||
|
|
||||||
/* Generic structure for supporting functions on various elements of Kolibri's GUI */
|
/* Generic structure for supporting functions on various elements of Kolibri's GUI */
|
||||||
struct kolibri_element_operations {
|
struct kolibri_element_operations {
|
||||||
void (*redraw_fn)(void *);
|
cb_elem_boxlib redraw_fn;
|
||||||
void (*mouse_fn)(void *);
|
cb_elem_boxlib mouse_fn;
|
||||||
void (*key_fn)(void *);
|
cb_elem_boxlib key_fn;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structure for a GUI Window on Kolibri. It also contains all the elements drawn in window */
|
/* Structure for a GUI Window on Kolibri. It also contains all the elements drawn in window */
|
||||||
@ -65,19 +68,20 @@ struct kolibri_element_operations kolibri_gui_op_table[KOLIBRI_NUM_GUI_ELEMENTS]
|
|||||||
void kolibri_init_gui_op_table(void)
|
void kolibri_init_gui_op_table(void)
|
||||||
{
|
{
|
||||||
/* Setting up functions for edit box GUI elements*/
|
/* Setting up functions for edit box GUI elements*/
|
||||||
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].redraw_fn = edit_box_draw;
|
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].redraw_fn = (cb_elem_boxlib)edit_box_draw;
|
||||||
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].mouse_fn = edit_box_mouse;
|
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].mouse_fn = (cb_elem_boxlib)edit_box_mouse;
|
||||||
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].key_fn = editbox_key;
|
kolibri_gui_op_table[KOLIBRI_EDIT_BOX].key_fn = (cb_elem_boxlib)editbox_key;
|
||||||
|
|
||||||
/* Setting up functions for check box GUI elements*/
|
/* Setting up functions for check box GUI elements*/
|
||||||
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].redraw_fn = check_box_draw2;
|
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].redraw_fn = (cb_elem_boxlib)check_box_draw2;
|
||||||
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].mouse_fn = check_box_mouse2;
|
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].mouse_fn = (cb_elem_boxlib)check_box_mouse2;
|
||||||
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].key_fn = NULL;
|
kolibri_gui_op_table[KOLIBRI_CHECK_BOX].key_fn = NULL;
|
||||||
|
|
||||||
/* Setting up functions for Kolibri Buttons ( SysFunc 8 )*/
|
/* Setting up functions for Kolibri Buttons ( SysFunc 8 )*/
|
||||||
kolibri_gui_op_table[KOLIBRI_BUTTON].redraw_fn = draw_button;
|
kolibri_gui_op_table[KOLIBRI_BUTTON].redraw_fn = (cb_elem_boxlib)draw_button;
|
||||||
kolibri_gui_op_table[KOLIBRI_BUTTON].mouse_fn = NULL;
|
kolibri_gui_op_table[KOLIBRI_BUTTON].mouse_fn = NULL;
|
||||||
kolibri_gui_op_table[KOLIBRI_BUTTON].key_fn = NULL;
|
kolibri_gui_op_table[KOLIBRI_BUTTON].key_fn = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new main GUI window for KolibriOS */
|
/* Create a new main GUI window for KolibriOS */
|
||||||
|
Loading…
Reference in New Issue
Block a user