![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _draw_listbox (void *w_, void *user_data) |
_draw_listbox - draw listbox on expose call | |
void | _draw_listbox_item (void *w_, void *user_data) |
_draw_listbox_item - draw item on expose call | |
void | _draw_listbox_viewslider (void *w_, void *user_data) |
_draw_listbox_viewslider - draw a slider on the viewport to indicate the view point | |
void | _reconfigure_listbox_viewport (void *w_, void *user_data) |
_reconfigure_listbox_viewport - reconfigure the viewport adjustment on size changes | |
void | _configure_listbox (void *w_, void *user_data) |
_configure_listbox - configure the viewport on mapping | |
void | _set_listbox_viewpoint (void *w_, void *user_data) |
_set_listbox_viewpoint - move the view_port to position | |
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
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 90 of file xlistbox_private.c.
References Widget_t::app, Widget_t::childlist, childlist_has_child(), Xputty::dpy, os_get_window_metrics(), os_resize_window(), Widget_t::parent, and Metrics_t::width.
Referenced by create_listbox_viewport().
void _draw_listbox | ( | void * | w_, |
void * | user_data | ||
) |
_draw_listbox - draw listbox on expose call
*w_ | - the listbox to draw |
*user_data | - attached user_data |
Definition at line 26 of file xlistbox_private.c.
References Widget_t::crb, NORMAL_, and use_bg_color_scheme().
Referenced by add_listbox().
void _draw_listbox_item | ( | void * | w_, |
void * | user_data | ||
) |
_draw_listbox_item - draw item on expose call
*w_ | - the item to draw |
*user_data | - attached user_data |
show label
Definition at line 33 of file xlistbox_private.c.
References ACTIVE_, Widget_t::adj, Widget_t::childlist, Childlist_t::childs, Widget_t::crb, Widget_t::flags, get_color_state(), HAS_TOOLTIP, Metrics_t::height, Widget_t::label, NORMAL_, os_get_window_metrics(), Widget_t::parent, PRELIGHT_, SELECTED_, Widget_t::state, tooltip_set_text(), use_base_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by listbox_add_entry().
void _draw_listbox_viewslider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_listbox_viewslider - draw a slider on the viewport to indicate the view point
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 100 of file xlistbox_private.c.
References Widget_t::adj, adj_get_state(), Widget_t::crb, Metrics_t::height, Adjustment_t::max_value, NORMAL_, os_get_window_metrics(), use_base_color_scheme(), use_bg_color_scheme(), use_fg_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by create_listbox_viewport().
void _listbox_entry_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_listbox_entry_released - redraw the slider when buttob released
*w_ | - void pointer to the Widget_t entry |
*button_ | - void pointer to the XButtonEvent |
*user_data | - void pointer to attached user_data |
Definition at line 132 of file xlistbox_private.c.
References Widget_t::adj, XEvent::button, Func_t::button_release_callback, check_value_changed(), Widget_t::childlist, Childlist_t::childs, Childlist_t::elem, expose_widget(), Widget_t::flags, Widget_t::func, HAS_POINTER, Widget_t::label, Adjustment_t::max_value, Adjustment_t::min_value, Widget_t::parent, Widget_t::state, Adjustment_t::step, Adjustment_t::value, Widget_t::widget, and XEvent::window.
Referenced by listbox_add_entry().
void _reconfigure_listbox_viewport | ( | void * | w_, |
void * | user_data | ||
) |
_reconfigure_listbox_viewport - reconfigure the viewport adjustment on size changes
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 77 of file xlistbox_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), Widget_t::childlist, childlist_has_child(), Metrics_t::height, Adjustment_t::max_value, os_get_window_metrics(), and Widget_t::parent.
Referenced by create_listbox_viewport().
void _set_listbox_viewpoint | ( | void * | w_, |
void * | user_data | ||
) |
_set_listbox_viewpoint - move the view_port to position
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 123 of file xlistbox_private.c.
References Widget_t::adj, adj_get_value(), Widget_t::app, Widget_t::childlist, Childlist_t::childs, Xputty::dpy, Metrics_t::height, os_get_window_metrics(), and os_move_window().
Referenced by create_listbox_viewport().