Go to the source code of this file.
Functions | |
void | listview_set_active_entry (Widget_t *w, int active) |
listview_set_active_entry - set the active listview entry More... | |
Widget_t * | create_listview_viewport (Widget_t *parent, int elem, int width, int height) |
create_listview_viewport - create a viewport on a listview to a Widget_t More... | |
Widget_t * | add_listview (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_label - add a listview to a Widget_t More... | |
void | listview_mem_free (void *w_, void *user_data) |
listview_mem_free - release additional used memory when destroy the Widget_t More... | |
void | listview_set_list (Widget_t *listview, char **list, int list_size) |
listview_set_list - set a list to a listview Widget_t More... | |
Widget_t* add_listview | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_label - add a listview 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 64 of file xlistview.c.
References _draw_listview(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, CENTER, CL_NONE, create_listview_viewport(), create_widget(), Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, Widget_t::label, Widget_t::scale, and USE_TRANSPARENCY.
create_listview_viewport - create a viewport on a listview to a Widget_t
*parent | - pointer to the Widget_t the listview should pop over |
width | - define the width of the viewport |
height | - define the height of the viewport |
Definition at line 38 of file xlistview.c.
References _configure_listview(), _draw_list(), _leave_list(), _list_entry_released(), _list_key_pressed(), _list_motion(), _reconfigure_listview_viewport(), _set_listview_viewpoint(), add_adjustment(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, Func_t::button_release_callback, CL_VIEWPORT, Func_t::configure_notify_callback, create_widget(), Xputty::dpy, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, Func_t::key_press_callback, Func_t::leave_callback, listview_mem_free(), Func_t::map_notify_callback, Func_t::mem_free_callback, Func_t::motion_callback, NORTHEAST, Widget_t::parent_struct, Widget_t::scale, ViewList_t::show_items, and Widget_t::widget.
void listview_mem_free | ( | void * | w_, |
void * | user_data | ||
) |
listview_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 79 of file xlistview.c.
References Widget_t::parent_struct.
void listview_set_active_entry | ( | Widget_t * | w, |
int | active | ||
) |
listview_set_active_entry - set the active listview entry
*w_ | - void pointer to the Widget_t listview |
active | - the active entry (int) |
Definition at line 27 of file xlistview.c.
References ViewList_t::active_item, Widget_t::adj, adj_set_value(), Widget_t::childlist, Childlist_t::childs, Adjustment_t::max_value, Adjustment_t::min_value, and Widget_t::parent_struct.
void listview_set_list | ( | Widget_t * | listview, |
char ** | list, | ||
int | list_size | ||
) |
listview_set_list - set a list to a listview Widget_t
*listview | - pointer to the Widget_t listview which should show the list |
**list | - pointer to the list |
list_size | - how many items contain the list |
Definition at line 85 of file xlistview.c.
References _configure_listview(), Widget_t::adj, Widget_t::childlist, Childlist_t::childs, CL_NONE, CL_VIEWPORT, ViewList_t::list_names, ViewList_t::list_size, Adjustment_t::max_value, Widget_t::parent_struct, and set_adjustment().