Go to the source code of this file.
Functions | |
void | listbox_set_active_entry (Widget_t *w, int active) |
listbox_set_active_entry - set the active listbox entry More... | |
Widget_t * | create_listbox_viewport (Widget_t *parent, int elem, int width, int height) |
create_listbox_viewport - create a viewport on a listbox to a Widget_t More... | |
Widget_t * | add_listbox (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_label - add a listbox to a Widget_t More... | |
Widget_t * | listbox_add_entry (Widget_t *listbox, const char *label) |
listbox_add_entry - add a item to listbox More... | |
Widget_t* add_listbox | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_label - add a listbox to a Widget_t
*parent | - pointer to the Widget_t request the label |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the label |
Definition at line 46 of file xlistbox.c.
References _draw_listbox(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, CENTER, CL_NONE, create_listbox_viewport(), create_widget(), Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, and Widget_t::scale.
create_listbox_viewport - create a viewport on a listbox to a Widget_t
*parent | - pointer to the Widget_t the listbox should pop over |
width | - define the width of the viewport |
height | - define the height of the viewport |
Definition at line 33 of file xlistbox.c.
References _configure_listbox(), _draw_listbox_viewslider(), _reconfigure_listbox_viewport(), _set_listbox_viewpoint(), add_adjustment(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, CL_VIEWPORT, Func_t::configure_notify_callback, create_widget(), Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Func_t::map_notify_callback, NORTHEAST, and Widget_t::scale.
listbox_add_entry - add a item to listbox
*listbox | - pointer to the Widget_t listbox |
*label | - Label to show on the listbox |
Definition at line 60 of file xlistbox.c.
References _draw_listbox_item(), _listbox_entry_released(), Widget_t::adj, Widget_t::app, Func_t::button_release_callback, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, CL_NONE, CL_VIEWPORT, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_TOOLTIP, Resize_t::init_width, Widget_t::label, Func_t::leave_callback, Adjustment_t::max_value, MENUITEM, Widget_t::scale, set_adjustment(), transparent_draw(), and USE_TRANSPARENCY.
void listbox_set_active_entry | ( | Widget_t * | w, |
int | active | ||
) |
listbox_set_active_entry - set the active listbox entry
*w_ | - void pointer to the Widget_t listbox |
active | - the active entry (int) |
Definition at line 26 of file xlistbox.c.
References Widget_t::adj, adj_set_value(), Adjustment_t::max_value, and Adjustment_t::min_value.