diff options
Diffstat (limited to 'src/lmctypes.h')
-rw-r--r-- | src/lmctypes.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lmctypes.h b/src/lmctypes.h new file mode 100644 index 00000000..45c6739e --- /dev/null +++ b/src/lmctypes.h @@ -0,0 +1,53 @@ +#ifndef __LMC_TYPES_H__ +#define __LMC_TYPES_H__ + +#include <glib.h> +#include <X11/Xlib.h> + +G_BEGIN_DECLS + +typedef struct _LmcBorderInfo LmcBorderInfo; +typedef struct _LmcPropertyValue LmcPropertyValue; +typedef struct _LmcPixel LmcPixel; +typedef struct _LmcPoint LmcPoint; + +struct _LmcBorderInfo +{ + short left, right, top, bottom; + short left_unscaled, right_unscaled, top_unscaled, bottom_unscaled; +}; + +struct _LmcPropertyValue +{ + Atom type; /* None means property does not exist */ + int format; /* 8, 16, 32 */ + + union { + char *b; + short *s; + long *l; + } data; + + unsigned long n_items; /* Number of 8, 16, or 32 bit quantities */ +}; + +struct _LmcPixel { + guchar red; + guchar green; + guchar blue; + guchar alpha; +}; + +struct _LmcPoint { + double x; + double y; +}; + +typedef void (*LmcDeformationFunc) (int u, int v, + int x, int y, int width, int height, + int *deformed_x, int *deformed_y, + void *data); + +G_END_DECLS + +#endif /* __LMC_TYPES_H__ */ |