![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _rounded_rectangle (cairo_t *cr, float x, float y, float width, float height) |
_rounded_rectangle - internal draw a rounded button | |
void | _pattern_out (Widget_t *w, Color_state st, int height) |
_pattern_in - a little pattern to make press state more visible | |
void | _pattern_in (Widget_t *w, Color_state st, int height) |
_pattern_in - a little pattern to make press state more visible | |
void | _draw_switch_image_button (void *w_, void *user_data) |
draw switch_image_button - internal draw the button to the buffer | |
void | _draw_button (void *w_, void *user_data) |
_draw_button - internal draw the button to the buffer | |
void | _draw_base_button (void *w_, void *user_data) |
_draw_base_button - internal draw the button with base to the buffer | |
void | _draw_on_off_button (void *w_, void *user_data) |
_draw_on_off_button - internal draw the on/off button to the buffer | |
void | _draw_ti_button (void *w_, void *user_data) |
_draw_ti_button - internal draw the button to the buffer | |
void | _draw_check_button (void *w_, void *user_data) |
_draw_check_button - internal draw the button to the buffer | |
void | _draw_check_box (void *w_, void *user_data) |
_draw_check_box - internal draw the check box to the buffer | |
void | _button_pressed (void *w_, void *button_, void *user_data) |
_button_pressed - redraw the button and send state via user_callback | |
void | _button_released (void *w_, void *button_, void *user_data) |
_button_released - redraw the button and send state via user_callback | |
void | _toggle_button_pressed (void *w_, void *button_, void *user_data) |
_toggle_button_pressed - redraw the button and send state via user_callback | |
void | _toggle_button_released (void *w_, void *button_, void *user_data) |
_toggle_button_released - redraw the button and send state via user_callback | |
void _button_pressed | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_button_pressed - redraw the button and send state via user_callback
*w_ | - void pointer to the Widget_t button |
*button_ | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 420 of file xbutton_private.c.
References adj_set_value(), and Widget_t::adj_y.
Referenced by add_button(), and add_image_button().
void _button_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_button_released - redraw the button and send state via user_callback
*w_ | - void pointer to the Widget_t button |
*button_ | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 425 of file xbutton_private.c.
References adj_set_value(), Widget_t::adj_y, Widget_t::flags, HAS_POINTER, and Widget_t::state.
Referenced by add_button(), and add_image_button().
void _draw_base_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_base_button - internal draw the button with base to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 220 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), _draw_image_button_with_label(), _remove_low_dash(), Widget_t::adj_y, Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::image, Widget_t::input_label, Widget_t::label, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, Widget_t::state, use_text_color_scheme(), Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by add_button(), and add_toggle_button().
void _draw_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_button - internal draw the button to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 191 of file xbutton_private.c.
References _draw_image_button(), _draw_image_button_with_label(), Widget_t::adj_y, Metrics_t::height, Widget_t::image, Widget_t::label, os_get_window_metrics(), Widget_t::state, Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by add_image_button().
void _draw_check_box | ( | void * | w_, |
void * | user_data | ||
) |
_draw_check_box - internal draw the check box to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 374 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::image, Widget_t::label, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, use_fg_color_scheme(), use_text_color_scheme(), and Metrics_t::visible.
Referenced by add_check_box().
void _draw_check_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_check_button - internal draw the button to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 341 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::image, os_get_window_metrics(), Widget_t::state, use_fg_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_check_button().
void _draw_on_off_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_on_off_button - internal draw the on/off button to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 274 of file xbutton_private.c.
References _draw_button_base(), Widget_t::adj_y, Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::label, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, Widget_t::state, use_text_color_scheme(), Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by add_on_off_button().
void _draw_switch_image_button | ( | void * | w_, |
void * | user_data | ||
) |
draw switch_image_button - internal draw the button to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 114 of file xbutton_private.c.
References _draw_image_button(), _draw_image_button_with_label(), Metrics_t::height, Widget_t::label, os_get_window_metrics(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_switch_image_button().
void _draw_ti_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_ti_button - internal draw the button to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 316 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), Widget_t::adj_y, Metrics_t::height, Widget_t::image, os_get_window_metrics(), Widget_t::state, Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by add_image_toggle_button().
void _pattern_in | ( | Widget_t * | w, |
Color_state | st, | ||
int | height | ||
) |
_pattern_in - a little pattern to make press state more visible
*w | - void pointer to the Widget_t button |
st | - the color state to use |
height | - the button height |
Definition at line 46 of file xbutton_private.c.
References Widget_t::crb, get_color_scheme(), and Colors::light.
Referenced by _draw_button_base(), and _draw_combobox_button().
void _pattern_out | ( | Widget_t * | w, |
Color_state | st, | ||
int | height | ||
) |
_pattern_in - a little pattern to make press state more visible
*w | - void pointer to the Widget_t button |
st | - the color state to use |
height | - the button height |
Definition at line 35 of file xbutton_private.c.
References Widget_t::crb, get_color_scheme(), and Colors::light.
Referenced by _draw_button_base(), and _draw_combobox_button().
void _rounded_rectangle | ( | cairo_t * | cr, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) |
_rounded_rectangle - internal draw a rounded button
*cr | - the cairo_t context to draw to |
x | - point on x axis |
y | - point on y axis |
width | - the button width |
height | - the button height |
Definition at line 25 of file xbutton_private.c.
Referenced by _draw_button_base().
void _toggle_button_pressed | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_toggle_button_pressed - redraw the button and send state via user_callback
*w_ | - void pointer to the Widget_t button |
*button_ | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 437 of file xbutton_private.c.
References expose_widget().
Referenced by add_check_box(), add_check_button(), add_image_toggle_button(), add_on_off_button(), add_switch_image_button(), and add_toggle_button().
void _toggle_button_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_toggle_button_released - redraw the button and send state via user_callback
*w_ | - void pointer to the Widget_t button |
*button_ | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 442 of file xbutton_private.c.
References Widget_t::adj, adj_set_value(), XEvent::button, expose_widget(), Widget_t::flags, HAS_POINTER, Adjustment_t::max_value, Adjustment_t::min_value, Widget_t::state, and Adjustment_t::value.
Referenced by add_check_box(), add_check_button(), add_image_toggle_button(), add_on_off_button(), add_switch_image_button(), and add_toggle_button().