|
libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
|
|
Go to the documentation of this file.
36 #include <cairo-xlib.h>
37 #include <X11/Xutil.h>
38 #include <X11/keysym.h>
39 #include <X11/Xatom.h>
55 #define NDEBUG // switch of assertion checks
64 #define debug_print(...) \
65 ((void)((DEBUG) ? fprintf(stderr, __VA_ARGS__) : 0))
78 #define min(x, y) ((x) < (y) ? (x) : (y))
86 #define max(x, y) ((x) < (y) ? (y) : (x))
99 #define IS_UTF8(c) (((c)&0xc0)==0xc0)
Xputty - the main struct. It should be declared before any other call to a Xputty function....
void run_embedded(Xputty *main)
run_embedded - the main event loop to run embedded UI's. It should be start after your Widget_t's b...
void main_run(Xputty *main)
main_run - start the main event loop. It should be start after your Widget_t's been created....
void main_quit(Xputty *main)
main_quit - destroy all remaining Widget_t's from the main->childlist. Free all resources which may...
XColor_t - the Widget_t Color struct XColor_t could be used for theming you Widget_t set.
Adjustment_t - struct to hold a controller adjustment.
Childlist_t - struct to hold a Widget_t child list Xputty main holds a list of any Widget_t created...
void main_init(Xputty *main)
main_init - open the Display and init the main->childlist. Set the bool run to true....