28 float value = (float)active;
30 else if (value<w->adj->min_value) value = w->
adj->
min_value;
35 float value = (float)active;
92 if (err) debug_print(
"Error grap pointer\n");
109 float max_value = -elem;
181 comboboxlist->
list_size *
sizeof(
char *));
194 snprintf(s, 31,
"%i",i);
ComboBox_t - struct to hold information for the combobox.
xevfunc configure_notify_callback
evfunc button_release_callback
evfunc key_press_callback
xevfunc value_changed_callback
xevfunc mem_free_callback
void adj_set_value(Adjustment_t *adj, float value)
adj_set_value - set the current value to the Adjustment_t
Adjustment_t * add_adjustment(Widget_t *w, float std_value, float value, float min_value, float max_value, float step, CL_type type)
*add_adjustment - adding a adjustment to a Widget_t
void set_adjustment(Adjustment_t *adj, float std_value, float value, float min_value, float max_value, float step, CL_type type)
*set_adjustment - set a new range to a existing Adjustment_t or create if it not exists yet
int asprintf(char *strp[], const char *fmt,...)
void childlist_add_child(Childlist_t *childlist, Widget_t *child)
childlist_add_child - internal use to add a child to the Childlist_t You usually didn't need to cal...
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child
void pop_combobox_menu_show(Widget_t *parent, Widget_t *menu, bool above)
void combobox_set_active_entry(Widget_t *w, int active)
combobox_set_active_entry - set the active combobox entry
void combobox_add_numeric_entrys(Widget_t *wid, int imin, int imax)
combobox_add_numeric_items - add numeric items from imin to imax to wid
void combobox_delete_entrys(Widget_t *combobox)
combobox_delete_entrys - free the list hold the combobox entrys
void combobox_rename_entry(Widget_t *w, int active, const char *label)
combobox_rename_entry - rename a entry in the combobox
Widget_t * create_combobox_menu(Widget_t *parent, int height)
void combobox_mem_free(void *w_, void *user_data)
combobox_mem_free - release additional used memory when destroy the Widget_t
void combobox_set_menu_size(Widget_t *combobox, int v)
combobox_set_menu_size - set the number of entrys shown in the pop menu
void combobox_add_entry(Widget_t *wid, const char *label)
combobox_add_entry - add a entry to the combobox
Widget_t * create_combobox_viewport(Widget_t *parent, int elem, int width, int height)
Widget_t * add_combobox(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_combobox - add a combobox
void _set_combobox_menu_viewport(void *w_, void *user_data)
_set_combobox_menu_viewport - set the viewport position from slider state
void _draw_combobox(void *w_, void *user_data)
_draw_combobox - internal draw the combobox to the buffer
void _leave_combobox(void *w_, void *user_data)
_leave_combobox - mouse pointer leave the combobox
void _draw_combobox_entrys(void *w_, void *user_data)
_draw_combobox_entrys - internal draw the combobox entrys to the buffer
void _combobox_motion(void *w_, void *xmotion_, void *user_data)
_combobox_motion - mouse pointer move in viewport
void _set_combobox_viewpoint(void *w_, void *user_data)
_set_combobox_viewpoint - set the slider state from viewport position
void _draw_combobox_menu_slider(void *w_, void *user_data)
_draw_combobox_menu_slider - internal draw the combobox menu slider
void _combobox_entry_released(void *w_, void *button_, void *user_data)
_combobox_entry_released - viewport entry released mouse button
void _draw_combobox_menu(void *w_, void *user_data)
_draw_combobox_menu - internal draw the combobox menu to the buffer
void _combobox_button_released(void *w_, void *button_, void *user_data)
_combobox_button_released - popup menu on right click
void _reconfigure_combobox_viewport(void *w_, void *user_data)
_reconfigure_combobox_viewport - set slider scale and step to match viewport entrys
void _draw_combobox_button(void *w_, void *user_data)
_draw_combobox_button - internal draw the combobox button to the buffer
void _configure_combobox_menu(Widget_t *parent, Widget_t *menu, int elem, bool above)
_configure_combobox_menu - set final size and position of menu to a Widget_t
void _button_combobox_released(void *w_, void *button_, void *user_data)
_button_combobox_released - popup the combobox menu
void _combobox_key_pressed(void *w_, void *xkey_, void *user_data)
_combobox_key_released - viewport entry released key
void _entry_released(void *w_, void *item_, void *user_data)
_entry_released - the combobox menu release func
void _set_entry(void *w_, void *user_data)
_set_entry - set the active combobox entry on adjustment change
Widget_t * add_vslider(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_vslider - add a vertical slider to a Widget_t connect to func.value_changed_callback to implement...