![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | Slider_t |
Functions | |
void | set_slider_image_frame_count (Widget_t *w, int count) |
set_slider_image_frame_count - set the number of sprites in the Slider Image | |
Widget_t * | add_vslider (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_vslider - add a vertical slider to a Widget_t connect to func.value_changed_callback to implement your actions use set_adjustment(w->adj_y, . . ) to set the range you need | |
Widget_t * | add_hslider (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_hslider - add a horizontal slider to a Widget_t connect to func.value_changed_callback to implement your actions use set_adjustment(w->adj_x, . . ) to set the range you need | |
void | slider_mem_free (void *w_, void *user_data) |
Widget_t * add_hslider | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_hslider - add a horizontal slider to a Widget_t connect to func.value_changed_callback to implement your actions use set_adjustment(w->adj_x, . . ) to set the range you need
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 51 of file xslider.c.
References _draw_hslider(), _slider_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_x, Widget_t::app, ASPECT, Func_t::button_release_callback, CL_CONTINUOS, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::flags, Slider_t::frames, Widget_t::func, Resize_t::gravity, HAS_MEM, Widget_t::label, Func_t::leave_callback, Func_t::mem_free_callback, os_transparent_draw(), Widget_t::private_struct, Widget_t::scale, and slider_mem_free().
Referenced by mk_open_midi_keyboard(), and open_file_dialog().
Widget_t * add_vslider | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_vslider - add a vertical slider to a Widget_t connect to func.value_changed_callback to implement your actions use set_adjustment(w->adj_y, . . ) to set the range you need
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 30 of file xslider.c.
References _draw_vslider(), _slider_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, ASPECT, Func_t::button_release_callback, CL_CONTINUOS, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::flags, Slider_t::frames, Widget_t::func, Resize_t::gravity, HAS_MEM, Widget_t::label, Func_t::leave_callback, Func_t::mem_free_callback, os_transparent_draw(), Widget_t::private_struct, Widget_t::scale, and slider_mem_free().
Referenced by add_listview(), add_multi_listview(), create_combobox_menu(), and create_menu().
void set_slider_image_frame_count | ( | Widget_t * | w, |
int | count | ||
) |
set_slider_image_frame_count - set the number of sprites in the Slider Image
*w | - pointer to the Slider Widget_t |
count | - frames in the image |
Definition at line 25 of file xslider.c.
References Slider_t::frames, and Widget_t::private_struct.
void slider_mem_free | ( | void * | w_, |
void * | user_data | ||
) |
Definition at line 72 of file xslider.c.
References Widget_t::private_struct.
Referenced by add_hslider(), and add_vslider().