![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | ViewList_t |
ViewList_t - struct to hold information for the listview. More... | |
Functions | |
void | listview_set_active_entry (Widget_t *w, int active) |
listview_set_active_entry - set the active listview entry | |
void | listview_unset_active_entry (Widget_t *w) |
listview_unset_active_entry - unset the active listview entry | |
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 | |
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 | |
void | listview_mem_free (void *w_, void *user_data) |
listview_mem_free - release additional used memory when destroy the Widget_t | |
void | listview_remove_list (Widget_t *listview) |
listview_remove_list - remove the list from a listview Widget_t | |
void | listview_set_list (Widget_t *listview, char **list, int list_size) |
listview_set_list - set a list to a listview Widget_t | |
void | listview_set_check_dir (Widget_t *listview, int set) |
listview_set_check_dir - set optional check if list item is a directory | |
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 72 of file xlistview.c.
References _draw_listview(), _draw_listviewslider(), _set_listviewport(), add_adjustment(), add_vslider(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, CENTER, CL_NONE, CL_VIEWPORTSLIDER, create_listview_viewport(), create_widget(), Func_t::expose_callback, ViewList_t::file, Widget_t::flags, ViewList_t::folder, Widget_t::func, Resize_t::gravity, Widget_t::label, NO_AUTOREPEAT, NO_PROPAGATE, Widget_t::parent_struct, Widget_t::scale, ViewList_t::slider, surface_get_png(), Func_t::value_changed_callback, and WESTSOUTH.
Referenced by open_directory_dialog(), and save_file_dialog().
create_listview_viewport - create a viewport on a listview to a Widget_t
*parent | - pointer to the Widget_t the listview should pop over |
elem | - how many entries to show (max value) |
width | - define the width of the viewport |
height | - define the height of the viewport |
Definition at line 46 of file xlistview.c.
References _configure_listview(), _draw_list(), _leave_list(), _list_entry_double_clicked(), _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, ViewList_t::check_dir, CL_VIEWPORT, Func_t::configure_notify_callback, create_widget(), Func_t::double_click_callback, 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, NORTHWEST, os_set_input_mask(), Widget_t::parent_struct, Widget_t::scale, and ViewList_t::show_items.
Referenced by add_listview().
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 101 of file xlistview.c.
References ViewList_t::file, ViewList_t::folder, and Widget_t::parent_struct.
Referenced by create_listview_viewport().
void listview_remove_list | ( | Widget_t * | listview | ) |
listview_remove_list - remove the list from a listview Widget_t
*listview | - pointer to the Widget_t listview which should show the list |
Definition at line 109 of file xlistview.c.
References Widget_t::adj, adj_set_value(), Widget_t::childlist, Childlist_t::childs, CL_NONE, CL_VIEWPORT, Metrics_t::height, ViewList_t::list_names, ViewList_t::list_size, os_get_window_metrics(), Widget_t::parent_struct, set_adjustment(), and ViewList_t::slider.
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 28 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.
Referenced by open_directory_dialog(), and save_file_dialog().
void listview_set_check_dir | ( | Widget_t * | listview, |
int | set | ||
) |
listview_set_check_dir - set optional check if list item is a directory
*listview | - pointer to the Widget_t listview which should show the list |
set | - 0 = no check (default); 1 = check |
Definition at line 134 of file xlistview.c.
References ViewList_t::check_dir, Widget_t::childlist, Childlist_t::childs, and Widget_t::parent_struct.
Referenced by save_file_dialog().
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 123 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().
void listview_unset_active_entry | ( | Widget_t * | w | ) |
listview_unset_active_entry - unset the active listview entry
*w | - void pointer to the Widget_t listview |
Definition at line 39 of file xlistview.c.
References ViewList_t::active_item, Widget_t::childlist, Childlist_t::childs, Widget_t::parent_struct, and ViewList_t::prelight_item.
Referenced by save_file_dialog().