|
libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
|
|
Go to the documentation of this file.
31 float value = (
float)active;
33 else if (value<w->adj->min_value) value = w->
adj->
min_value;
40 XSelectInput(wid->
app->
dpy, wid->
widget,StructureNotifyMask|ExposureMask|KeyPressMask
41 |EnterWindowMask|LeaveWindowMask|ButtonReleaseMask
42 |ButtonPressMask|Button1MotionMask|PointerMotionMask);
49 float max_value = -elem;
65 int x,
int y,
int width,
int height) {
91 float max_value = view_port->
adj->
max_value+ (float)list_size;
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
void _reconfigure_listview_viewport(void *w_, void *user_data)
_reconfigure_listview_viewport - reconfigure the viewport adjustment on size changes
void _list_entry_released(void *w_, void *button_, void *user_data)
_list_entry_released - move listview or set active entry
void listview_set_active_entry(Widget_t *w, int active)
listview_set_active_entry - set the active listview entry
void adj_set_value(Adjustment_t *adj, float value)
adj_set_value - set the current value to the Adjustment_t
void _list_motion(void *w_, void *xmotion_, void *user_data)
_list_motion - follow mouse pointer to set prelight item
evfunc key_press_callback
void _draw_list(void *w_, void *user_data)
_draw_list - draw list on expose call
void _set_listview_viewpoint(void *w_, void *user_data)
_set_listview_viewpoint - move the view_port to position
void listview_mem_free(void *w_, void *user_data)
listview_mem_free - release additional used memory when destroy the Widget_t
void _configure_listview(void *w_, void *user_data)
_configure_listview - configure the viewport on mapping
xevfunc map_notify_callback
void listview_set_list(Widget_t *listview, char **list, int list_size)
listview_set_list - set a list to a listview Widget_t
xevfunc mem_free_callback
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
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
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
xevfunc configure_notify_callback
void _leave_list(void *w_, void *user_data)
_leave_list - draw list on pointer leave
ViewList_t - struct to hold information for the listview.
void _list_key_pressed(void *w_, void *xkey_, void *user_data)
_list_key_pressed - move listview or set active entry
void _draw_listview(void *w_, void *user_data)
_draw_listview - draw listview on expose call