![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _pattern_vslider (Widget_t *w, Color_state st, int width) |
_pattern_vslider - set pattern for the slider base | |
void | _pattern_hslider (Widget_t *w, Color_state st, int width) |
_pattern_hslider - set pattern for the slider base | |
void | _draw_image_slider (Widget_t *w, int width_t, int height_t) |
_draw_image_slider - draw slider from a horizontal sprite image | |
void | _draw_vslider (void *w_, void *user_data) |
_draw_vslider - internal draw the slider to the buffer | |
void | _draw_hslider (void *w_, void *user_data) |
_draw_hslider - internal draw the slider to the buffer | |
void | _slider_released (void *w_, void *button_, void *user_data) |
_slider_released - redraw the slider when button released | |
void _draw_hslider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_hslider - internal draw the slider to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 143 of file xslider_private.c.
References _draw_image_slider(), _pattern_hslider(), Widget_t::adj, adj_get_state(), adj_get_value(), Widget_t::adj_x, Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::image, Widget_t::label, NORMAL_, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, Xputty::small_font, Adjustment_t::step, use_bg_color_scheme(), use_fg_color_scheme(), use_shadow_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_hslider().
void _draw_image_slider | ( | Widget_t * | w, |
int | width_t, | ||
int | height_t | ||
) |
_draw_image_slider - draw slider from a horizontal sprite image
*w | - pointer to the Widget_t button |
width_t | - the width of the base |
height_t | - the height of the base |
Definition at line 47 of file xslider_private.c.
References Widget_t::adj, adj_get_state(), Widget_t::crb, Slider_t::frames, Widget_t::image, os_get_surface_size(), and Widget_t::private_struct.
Referenced by _draw_hslider(), and _draw_vslider().
void _draw_vslider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_vslider - internal draw the slider to the buffer
*w_ | - void pointer to the Widget_t button |
*user_data | - void pointer to attached user_data |
Definition at line 72 of file xslider_private.c.
References _draw_image_slider(), _pattern_vslider(), Widget_t::adj, adj_get_state(), adj_get_value(), Widget_t::adj_y, Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::image, Widget_t::label, NORMAL_, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, Xputty::small_font, Adjustment_t::step, use_bg_color_scheme(), use_fg_color_scheme(), use_shadow_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_vslider().
void _pattern_hslider | ( | Widget_t * | w, |
Color_state | st, | ||
int | width | ||
) |
_pattern_hslider - set pattern for the slider base
*w | - void pointer to the Widget_t button |
st | - the Widget_t Color_t mode to use |
width | - the width of the base |
Definition at line 36 of file xslider_private.c.
References Colors::base, Widget_t::crb, and get_color_scheme().
Referenced by _draw_hslider().
void _pattern_vslider | ( | Widget_t * | w, |
Color_state | st, | ||
int | width | ||
) |
_pattern_vslider - set pattern for the slider base
*w | - void pointer to the Widget_t button |
st | - the Widget_t Color_t mode to use |
width | - the width of the base |
Definition at line 25 of file xslider_private.c.
References Colors::base, Widget_t::crb, and get_color_scheme().
Referenced by _draw_vslider().
void _slider_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_slider_released - redraw the slider when button released
*w_ | - void pointer to the Widget_t button |
*button_ | - the XbuttonEvent |
*user_data | - void pointer to attached user_data |
Definition at line 212 of file xslider_private.c.
References expose_widget().
Referenced by add_hslider(), and add_vslider().