|
libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
|
|
Go to the documentation of this file.
28 }
else if(wid->
adj_x) {
32 float value = adj->
value;
59 }
else if(wid->
adj_x) {
72 }
else if(wid->
adj_x) {
76 float value = adj->
value;
77 value = adj->
value + 1.0;
85 switch(xbutton->button) {
89 wid->
pos_x = xbutton->x;
90 wid->
pos_y = xbutton->y;
115 if(xbutton->button == Button1) {
117 XUngrabPointer(main->
dpy,CurrentTime);
121 if (xbutton->window == w->
widget) {
131 }
else if(xbutton->button == Button4) {
133 }
else if(xbutton->button == Button5) {
212 XWindowAttributes attrs;
213 XGetWindowAttributes(w->
app->
dpy, (Window)w->
widget, &attrs);
215 if ((button->x<attrs.width && button->y<attrs.height) &&
216 (button->x>0 && button->y>0)){
226 if (x && wid->
adj_x) {
228 }
else if (!x && wid->
adj_y) {
250 cairo_font_face_t *ff = cairo_get_font_face(wid->
crb);
251 cairo_destroy(wid->
crb);
252 cairo_surface_destroy(wid->
buffer);
254 CAIRO_CONTENT_COLOR_ALPHA, width, height);
255 assert(cairo_surface_status(wid->
buffer) == CAIRO_STATUS_SUCCESS);
257 cairo_set_font_face(wid->
crb, ff);
Xputty - the main struct. It should be declared before any other call to a Xputty function....
void adj_set_start_value(void *w)
adj_set_start_value - internal use to store the value when pointer movment starts
#define min(x, y)
min - set a maximal value (x) as return value
evfunc button_press_callback
Adjustment_t - struct to hold a controller adjustment.
#define debug_print(...)
debug_print - print out state messages when compiled with the -DDEBUG flag
evfunc button_release_callback
xevfunc configure_notify_callback
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child
#define max(x, y)
max - set a minimal value (x) as return value
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...