![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _draw_valuedisplay (void *w_, void *user_data) |
_draw_valuedisplay - draw a valuedisplay on expose call | |
void | _draw_spinbox (void *w_, void *user_data) |
_draw_spinbox - draw a spinbox expose call | |
void | _draw_buttons (void *w_, void *user_data) |
_draw_buttons - draw the spinbox buttons | |
void | _buttons_released (void *w_, void *button_, void *user_data) |
_buttons_released - set the spinbox value on button releases | |
void | _popup_spinbox (void *w_, void *button, void *user_data) |
_popup_spinbox - show a spinbox above a valuedisplay | |
void _buttons_released | ( | void * | w_, |
void * | button, | ||
void * | user_data | ||
) |
_buttons_released - set the spinbox value on button releases
*w_ | - The Widget_t contain the button |
*button | - the XButtonEvent |
*user_data | - attached user_data |
Definition at line 157 of file xvaluedisplay_private.c.
References Widget_t::adj, adj_get_value(), adj_set_value(), XEvent::button, expose_widget(), Metrics_t::height, os_get_window_metrics(), Widget_t::parent, Adjustment_t::step, Metrics_t::visible, and XEvent::y.
Referenced by add_popup_spinbox().
void _draw_buttons | ( | void * | w_, |
void * | user_data | ||
) |
_draw_buttons - draw the spinbox buttons
*w_ | - The Widget_t contain the spinbox |
*user_data | - attached user_data |
Definition at line 133 of file xvaluedisplay_private.c.
References Widget_t::app, Resize_t::ascale, Xputty::big_font, Widget_t::crb, get_color_state(), Metrics_t::height, NORMAL_, os_get_window_metrics(), Widget_t::scale, use_bg_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_popup_spinbox().
void _draw_spinbox | ( | void * | w_, |
void * | user_data | ||
) |
_draw_spinbox - draw a spinbox expose call
*w_ | - The Widget_t contain the spinbox |
*user_data | - attached user_data |
Definition at line 93 of file xvaluedisplay_private.c.
References Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, NORMAL_, Xputty::normal_font, os_get_window_metrics(), Widget_t::parent, Widget_t::scale, Adjustment_t::step, use_bg_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_popup_spinbox().
void _draw_valuedisplay | ( | void * | w_, |
void * | user_data | ||
) |
_draw_valuedisplay - draw a valuedisplay on expose call
*w_ | - The Widget_t contain the valuedisplay |
*user_data | - attached user_data |
Definition at line 25 of file xvaluedisplay_private.c.
References ACTIVE_, Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, INSENSITIVE_, NORMAL_, Xputty::normal_font, os_get_window_metrics(), PRELIGHT_, Widget_t::scale, SELECTED_, Widget_t::state, Adjustment_t::step, use_frame_color_scheme(), use_shadow_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_valuedisplay().
void _popup_spinbox | ( | void * | w_, |
void * | button, | ||
void * | user_data | ||
) |
_popup_spinbox - show a spinbox above a valuedisplay
*w_ | - The Widget_t contain the valuedisplay |
*button | - the XButtonEvent |
*user_data | - attached user_data |
Definition at line 182 of file xvaluedisplay_private.c.
References Widget_t::app, Widget_t::childlist, Childlist_t::childs, Xputty::dpy, Xputty::hold_grab, IS_WIDGET, os_get_root_window(), os_grab_pointer(), os_move_window(), os_translate_coords(), pop_widget_show_all(), and Widget_t::widget.
Referenced by add_valuedisplay().