#include "xbutton.h"
Go to the source code of this file.
Macros | |
#define | XBUTTON_PRIVATE_H_ |
Functions | |
void | _rounded_rectangle (cairo_t *cr, float x, float y, float width, float height) |
_rounded_rectangle - internal draw a rounded button More... | |
void | _pattern_out (Widget_t *w, Color_state st, int height) |
_pattern_in - a little pattern to make press state more visible More... | |
void | _pattern_in (Widget_t *w, Color_state st, int height) |
_pattern_in - a little pattern to make press state more visible More... | |
void | _draw_switch_image_button (void *w_, void *user_data) |
draw switch_image_button - internal draw the button to the buffer More... | |
void | _draw_button (void *w_, void *user_data) |
_draw_button - internal draw the button to the buffer More... | |
void | _draw_on_off_button (void *w_, void *user_data) |
_draw_on_off_button - internal draw the on/off button to the buffer More... | |
void | _draw_ti_button (void *w_, void *user_data) |
_draw_ti_button - internal draw the button to the buffer More... | |
void | _draw_check_button (void *w_, void *user_data) |
_draw_check_button - internal draw the button to the buffer More... | |
void | _draw_check_box (void *w_, void *user_data) |
_draw_check_box - internal draw the check box to the buffer More... | |
void | _button_pressed (void *w_, void *button, void *user_data) |
_button_pressed - redraw the button and send state via user_callback More... | |
void | _button_released (void *w_, void *button_, void *user_data) |
_button_released - redraw the button and send state via user_callback More... | |
void | _toggle_button_pressed (void *w_, void *button, void *user_data) |
_toggle_button_pressed - redraw the button and send state via user_callback More... | |
void | _toggle_button_released (void *w_, void *button_, void *user_data) |
_toggle_button_released - redraw the button and send state via user_callback More... | |
#define XBUTTON_PRIVATE_H_ |
Definition at line 24 of file xbutton_private.h.
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 389 of file xbutton_private.c.
References adj_set_value(), and Widget_t::adj_y.
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 394 of file xbutton_private.c.
References adj_set_value(), Widget_t::adj_y, Widget_t::flags, HAS_POINTER, and Widget_t::state.
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_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, Xputty::dpy, get_color_state(), Widget_t::image, Widget_t::input_label, Widget_t::label, Xputty::normal_font, Widget_t::scale, Widget_t::state, use_text_color_scheme(), Adjustment_t::value, and Widget_t::widget.
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 343 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, Xputty::dpy, get_color_state(), Widget_t::image, Widget_t::label, Xputty::normal_font, Widget_t::scale, use_fg_color_scheme(), use_text_color_scheme(), and Widget_t::widget.
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 310 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), Widget_t::app, Widget_t::crb, Xputty::dpy, get_color_state(), Widget_t::image, Widget_t::state, use_fg_color_scheme(), and Widget_t::widget.
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 243 of file xbutton_private.c.
References _draw_button_base(), Widget_t::adj_y, Widget_t::app, Resize_t::ascale, Widget_t::crb, Xputty::dpy, get_color_state(), IS_UTF8, Widget_t::label, Xputty::normal_font, Widget_t::scale, Widget_t::state, use_text_color_scheme(), Adjustment_t::value, and Widget_t::widget.
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(), Widget_t::app, Xputty::dpy, Widget_t::label, and Widget_t::widget.
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 285 of file xbutton_private.c.
References _draw_button_base(), _draw_image_button(), Widget_t::adj_y, Widget_t::app, Xputty::dpy, Widget_t::image, Widget_t::state, Adjustment_t::value, and Widget_t::widget.
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::app, Widget_t::crb, get_color_scheme(), and Colors::light.
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::app, Widget_t::crb, get_color_scheme(), and Colors::light.
void _rounded_rectangle | ( | cairo_t * | cr, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) |
_rounded_rectangle - internal draw a rounded button
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.
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 406 of file xbutton_private.c.
References expose_widget().
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 411 of file xbutton_private.c.
References Widget_t::adj, adj_set_value(), expose_widget(), Widget_t::flags, HAS_POINTER, Adjustment_t::max_value, Adjustment_t::min_value, Widget_t::state, and Adjustment_t::value.