![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | combobox_set_active_entry (Widget_t *w, int active) |
combobox_set_active_entry - set the active combobox entry | |
void | combobox_rename_entry (Widget_t *w, int active, const char *label) |
combobox_rename_entry - rename a entry in the combobox | |
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_delete_entrys (Widget_t *combobox) |
combobox_delete_entrys - free the list hold the combobox entrys | |
void | pop_combobox_menu_show (Widget_t *parent, Widget_t *menu, bool above) |
Widget_t * | create_combobox_viewport (Widget_t *parent, int elem, int width, int height) |
Widget_t * | create_combobox_menu (Widget_t *parent, 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 | combobox_add_entry (Widget_t *wid, const char *label) |
combobox_add_entry - add a entry to the combobox | |
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 | |
Widget_t * add_combobox | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_combobox - add a combobox
*parent | - pointer to the Widget_t request the button |
*label | - Label to show over the combobox |
x,y,width,height | - the position/geometry to create the button |
Definition at line 152 of file xcombobox.c.
References _button_combobox_released(), _combobox_button_released(), _draw_combobox(), _draw_combobox_button(), _entry_released(), _set_entry(), add_adjustment(), add_button(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, Func_t::button_release_callback, CENTER, CL_ENUM, create_combobox_menu(), create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, os_transparent_draw(), and Widget_t::scale.
Referenced by add_my_combobox(), mk_open_midi_keyboard(), open_directory_dialog(), open_file_dialog(), and save_file_dialog().
void combobox_add_entry | ( | Widget_t * | wid, |
const char * | label | ||
) |
combobox_add_entry - add a entry to the combobox
*wid | - pointer to the Widget_t combobox |
*label | - Label to show on the menu |
Definition at line 175 of file xcombobox.c.
References Widget_t::adj, asprintf(), Widget_t::childlist, Childlist_t::childs, CL_ENUM, ComboBox_t::list_names, ComboBox_t::list_size, Adjustment_t::max_value, Widget_t::parent_struct, and set_adjustment().
Referenced by add_my_combobox(), combobox_add_numeric_entrys(), mk_open_midi_keyboard(), open_file_dialog(), and save_file_dialog().
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
*wid | - pointer to the Widget_t combobox |
*imin | - the low number of the numeric items |
*imax | - the high number of the numeric items |
Definition at line 189 of file xcombobox.c.
References combobox_add_entry().
void combobox_delete_entrys | ( | Widget_t * | combobox | ) |
combobox_delete_entrys - free the list hold the combobox entrys
*combobox | - void pointer to the Widget_t combobox |
Definition at line 67 of file xcombobox.c.
References Widget_t::adj, Widget_t::childlist, Childlist_t::childs, CL_ENUM, CL_VIEWPORTSLIDER, ComboBox_t::list_names, ComboBox_t::list_size, Widget_t::parent_struct, set_adjustment(), and ComboBox_t::slider.
void combobox_mem_free | ( | void * | w_, |
void * | user_data | ||
) |
combobox_mem_free - release additional used memory when destroy the Widget_t
*w_ | - void pointer to the Widget_t |
*user_data | - void pointer to attached user_data |
Definition at line 47 of file xcombobox.c.
References ComboBox_t::list_names, ComboBox_t::list_size, and Widget_t::parent_struct.
Referenced by create_combobox_viewport().
void combobox_rename_entry | ( | Widget_t * | wid, |
int | active, | ||
const char * | label | ||
) |
combobox_rename_entry - rename a entry in the combobox
*wid | - pointer to the Widget_t combobox |
active | - the entry to rename (int) |
*label | - new Label to show on the menu |
Definition at line 34 of file xcombobox.c.
References Widget_t::adj, asprintf(), Widget_t::childlist, Childlist_t::childs, ComboBox_t::list_names, Adjustment_t::max_value, Adjustment_t::min_value, and Widget_t::parent_struct.
void combobox_set_active_entry | ( | Widget_t * | w, |
int | active | ||
) |
combobox_set_active_entry - set the active combobox entry
*w | - void pointer to the Widget_t combobox |
active | - the active entry (int) |
Definition at line 27 of file xcombobox.c.
References Widget_t::adj, adj_set_value(), Adjustment_t::max_value, and Adjustment_t::min_value.
Referenced by add_my_combobox(), mk_open_midi_keyboard(), open_directory_dialog(), open_file_dialog(), and save_file_dialog().
void combobox_set_menu_size | ( | Widget_t * | combobox, |
int | v | ||
) |
combobox_set_menu_size - set the number of entrys shown in the pop menu
*combobox | - pointer to the Widget_t combobox |
v | - the max entry count (int) |
Definition at line 59 of file xcombobox.c.
References _configure_combobox_menu(), Widget_t::childlist, Childlist_t::childs, Widget_t::parent_struct, and ComboBox_t::show_items.
Definition at line 123 of file xcombobox.c.
References _draw_combobox_menu(), _draw_combobox_menu_slider(), _set_combobox_menu_viewport(), add_vslider(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Widget_t::childlist, childlist_add_child(), CL_VIEWPORTSLIDER, ComboBox_t::combobox, create_combobox_viewport(), create_window(), Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, IS_POPUP, IS_WIDGET, NO_AUTOREPEAT, NO_PROPAGATE, NONE, NORTHWEST, os_get_root_window(), os_set_transient_for_hint(), os_set_window_attrb(), os_translate_coords(), Widget_t::parent_struct, Widget_t::scale, set_adjustment(), ComboBox_t::slider, Func_t::value_changed_callback, and Widget_t::widget.
Referenced by add_combobox().
Definition at line 96 of file xcombobox.c.
References _combobox_entry_released(), _combobox_key_pressed(), _combobox_motion(), _draw_combobox_entrys(), _leave_combobox(), _reconfigure_combobox_viewport(), _set_combobox_viewpoint(), ComboBox_t::active_item, add_adjustment(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, Func_t::button_release_callback, CENTER, CL_VIEWPORT, combobox_mem_free(), Func_t::configure_notify_callback, create_widget(), Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, Func_t::key_press_callback, Func_t::leave_callback, ComboBox_t::list_names, ComboBox_t::list_size, Func_t::mem_free_callback, Func_t::motion_callback, os_set_input_mask(), Widget_t::parent_struct, ComboBox_t::prelight_item, Widget_t::scale, and ComboBox_t::show_items.
Referenced by create_combobox_menu().
Definition at line 82 of file xcombobox.c.
References _configure_combobox_menu(), Widget_t::app, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, Xputty::hold_grab, ComboBox_t::list_size, os_grab_pointer(), Widget_t::parent_struct, pop_widget_show_all(), and ComboBox_t::show_items.
Referenced by _button_combobox_released(), and _combobox_button_released().