add box_lib wrapper: frame, progress bar

git-svn-id: svn://kolibrios.org@6449 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Serhii Sakhno 2016-06-21 23:47:56 +00:00
parent 043992e730
commit 7877352be7
2 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,8 @@
#include "kolibri_editbox.h" #include "kolibri_editbox.h"
#include "kolibri_checkbox.h" #include "kolibri_checkbox.h"
#include "kolibri_button.h" #include "kolibri_button.h"
#include "kolibri_progressbar.h"
#include "kolibri_frame.h"
/* enum KOLIBRI_GUI_ELEMENT_TYPE contains all available GUI items from box_lib */ /* enum KOLIBRI_GUI_ELEMENT_TYPE contains all available GUI items from box_lib */
/* More elements can be added from other libraries as required */ /* More elements can be added from other libraries as required */
@ -82,6 +84,16 @@ 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;
/* Setting up functions for progress bar GUI elements*/
kolibri_gui_op_table[KOLIBRI_PROGRESS_BAR].redraw_fn = (cb_elem_boxlib)progressbar_draw;
kolibri_gui_op_table[KOLIBRI_PROGRESS_BAR].mouse_fn = NULL;
kolibri_gui_op_table[KOLIBRI_PROGRESS_BAR].key_fn = NULL;
/* Setting up functions for frame GUI elements*/
kolibri_gui_op_table[KOLIBRI_FRAME].redraw_fn = (cb_elem_boxlib)frame_draw;
kolibri_gui_op_table[KOLIBRI_FRAME].mouse_fn = NULL;
kolibri_gui_op_table[KOLIBRI_FRAME].key_fn = NULL;
} }
/* Create a new main GUI window for KolibriOS */ /* Create a new main GUI window for KolibriOS */

View File

@ -134,3 +134,8 @@ public edit_box_mouse as '_edit_box_mouse'
public check_box_draw2 as '_check_box_draw2' public check_box_draw2 as '_check_box_draw2'
public check_box_mouse2 as '_check_box_mouse2' public check_box_mouse2 as '_check_box_mouse2'
public progressbar_draw as '_progressbar_draw'
public progressbar_progress as '_progressbar_progress'
public frame_draw as '_frame_draw'