#include "xputty.h"
Go to the source code of this file.
Macros | |
#define | XKNOB_H_ |
Functions | |
Widget_t * | add_knob (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_knob - add a knob 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 More... | |
Widget_t * | add_image_knob (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_image_knob - add a knob from image to a Widget_t without value display on the knob connect to func.value_changed_callback to implement your actions use set_adjustment(w->adj_y, . . ) to set the range you need More... | |
Widget_t* add_image_knob | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_image_knob - add a knob from image to a Widget_t without value display on the knob 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 41 of file xknob.c.
References _draw_knob_image(), _knob_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::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
add_knob - add a knob 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 26 of file xknob.c.
References _draw_knob(), _knob_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::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().