38 if (err) debug_print(
"Error grap pointer\n");
53 wid->
flags &= ~USE_TRANSPARENCY;
67 if (v > i || v < 0)
return;
87 int x,
int y,
int width,
int height) {
107 int x,
int y,
int width,
int height) {
115 cairo_text_extents_t extents;
116 cairo_text_extents(parent->
crb,label , &extents);
117 int width = (int)extents.width+20;
120 int height = metrics.
height;
174 int width = metrics.
width;
181 item->
flags &= ~USE_TRANSPARENCY;
201 int width = metrics.
width;
208 wid->
flags &= ~USE_TRANSPARENCY;
231 int width = metrics.
width;
238 wid->
flags &= ~USE_TRANSPARENCY;
277 slider->
flags &= ~USE_TRANSPARENCY;
287 int width = metrics.
width;
294 wid->
flags &= ~USE_TRANSPARENCY;
364 int width = metrics.
width;
377 wid->
flags &= ~USE_TRANSPARENCY;
evfunc button_release_callback
xevfunc value_changed_callback
evfunc button_press_callback
Metrics_t - struct to receive window size, position & visibility Pass this struct to os_get_window_...
XColor_t - the Widget_t Color struct XColor_t could be used for theming you Widget_t set.
void adj_set_value(Adjustment_t *adj, float value)
adj_set_value - set the current value to the Adjustment_t
float adj_get_value(Adjustment_t *adj)
adj_get_value - get the current value of the Adjustment_t
Adjustment_t * add_adjustment(Widget_t *w, float std_value, float value, float min_value, float max_value, float step, CL_type type)
*add_adjustment - adding a adjustment to a Widget_t
void set_adjustment(Adjustment_t *adj, float std_value, float value, float min_value, float max_value, float step, CL_type type)
*set_adjustment - set a new range to a existing Adjustment_t or create if it not exists yet
void childlist_add_child(Childlist_t *childlist, Widget_t *child)
childlist_add_child - internal use to add a child to the Childlist_t You usually didn't need to cal...
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child
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...