28 }
else if(wid->
adj_x) {
32 float value = adj->
value;
60 }
else if(wid->
adj_x) {
73 }
else if(wid->
adj_x) {
77 float value = adj->
value;
78 value = adj->
value + 1.0;
107 debug_print(
"Button2 \n");
112 debug_print(
"Button3 \n");
140 if(xbutton->
button == Button1) {
145 XUngrabPointer(main->
dpy,CurrentTime);
173 if(xbutton->
button == Button1) {
188 }
else if(xbutton->
button == Button4) {
190 }
else if(xbutton->
button == Button5) {
277 (button->
x>0 && button->
y>0)){
280 w->
flags &= ~HAS_POINTER;
287 if (x && wid->
adj_x) {
289 }
else if (!x && wid->
adj_y) {
293 float value = adj->
value;
310 debug_print(
"Widget_t _dummy callback\n");
314 debug_print(
"Widget_t _dummy callback\n");
321 cairo_font_face_t *ff = cairo_get_font_face(wid->
crb);
322 cairo_destroy(wid->
crb);
323 cairo_surface_destroy(wid->
buffer);
325 CAIRO_CONTENT_COLOR_ALPHA, width, height);
326 assert(cairo_surface_status(wid->
buffer) == CAIRO_STATUS_SUCCESS);
328 cairo_set_font_face(wid->
crb, ff);
Adjustment_t - struct to hold a controller adjustment.
xevfunc configure_notify_callback
evfunc button_release_callback
evfunc button_press_callback
Metrics_t - struct to receive window size, position & visibility Pass this struct to os_get_window_...
Xputty - the main struct. It should be declared before any other call to a Xputty function....
void check_value_changed(Adjustment_t *adj, float *value)
check_value_changed - check if Adjustment_t value have changed and send value_changed_callback (VALUE...
void adj_set_start_value(void *w)
adj_set_start_value - internal use to store the value when pointer movment starts
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child