46#include <cairo-xlib.h>
48#include <X11/keysym.h>
50#include <X11/cursorfont.h>
56#define _(S) gettext(S)
67#define DND_STATUS_ACCEPT(e) ((e)->xclient.data.l[1] & 0x1L)
68#define DND_VERSION(e) ((e)->xclient.data.l[1] >> 24)
69#define DND_SOURCE_WIN(e) ((e)->xclient.data.l[0])
70#define DND_DROP_TIME(e) ((e)->xclient.data.l[2])
96#define debug_print(...) \
97 { char xxdeb[1024]; snprintf(xxdeb, 1024, __VA_ARGS__); OutputDebugString(xxdeb); }
99#define debug_print(...) \
100 ((void)((LIBDEBUG) ? fprintf(stderr, __VA_ARGS__) : 0))
114#define min(x, y) ((x) < (y) ? (x) : (y))
122#define max(x, y) ((x) < (y) ? (y) : (x))
135#define IS_UTF8(c) (((c)&0xc0)==0xc0)
186typedef void (*
xfunc)(
void * widget,
void* user_data);
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...
SystrayColor - the Systray Color struct SystrayColor could be used for the backgroung color of the Sy...
XColor_t - the Widget_t Color struct XColor_t could be used for theming you Widget_t set.
Xputty - the main struct. It should be declared before any other call to a Xputty function....
SystrayColor_t * systray_color
compatibility definitions (Linux, MSWindows): This file contains definitions and structs used to prov...
void main_quit(Xputty *main)
main_quit - destroy all remaining Widget_t's from the main->childlist. Free all resources which may...
void main_init(Xputty *main)
main_init - open the Display and init the main->childlist. Set the bool run to true....
void main_run(Xputty *main)
main_run - start the main event loop. It should be start after your Widget_t's been created....
void(* xfunc)(void *widget, void *user_data)
*xfunc - function pointer to connect XEvents from a Widget_t to a event handler
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...