|
libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
|
|
Go to the documentation of this file.
27 float value = (float)active;
29 else if (value<w->adj->min_value) value = w->
adj->
min_value;
36 float max_value = -elem ;
47 int x,
int y,
int width,
int height) {
void _draw_listbox(void *w_, void *user_data)
_draw_listbox - draw listbox on expose call
void adj_set_value(Adjustment_t *adj, float value)
adj_set_value - set the current value to the Adjustment_t
void _draw_listbox_viewslider(void *w_, void *user_data)
_draw_listbox_viewslider - draw a slider on the viewport to indicate the view point
xevfunc map_notify_callback
void _reconfigure_listbox_viewport(void *w_, void *user_data)
_reconfigure_listbox_viewport - reconfigure the viewport adjustment on size changes
void _listbox_entry_released(void *w_, void *button_, void *user_data)
_listbox_entry_released - redraw the slider when buttob released
void _configure_listbox(void *w_, void *user_data)
_configure_listbox - configure the viewport on mapping
evfunc button_release_callback
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 it will be created if it not exsits yet
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
void listbox_set_active_entry(Widget_t *w, int active)
listbox_set_active_entry - set the active listbox entry
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_listbox_viewpoint(void *w_, void *user_data)
_set_listbox_viewpoint - move the view_port to position
xevfunc configure_notify_callback
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child
Widget_t * listbox_add_entry(Widget_t *listbox, const char *label)
listbox_add_entry - add a item to listbox
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
void _draw_listbox_item(void *w_, void *user_data)
_draw_listbox_item - draw item on expose call