summaryrefslogtreecommitdiff
path: root/Eyes.h
diff options
context:
space:
mode:
authorDylan Simon <dylan@dylex.net>2009-09-27 14:44:35 -0400
committerJames Cloos <cloos@jhcloos.com>2009-09-27 14:44:35 -0400
commit5e825a140f4022b88dd7a1a20a9a01b653f1a95c (patch)
tree36a25fc8b364053ea0c126013eabaa7cb69075b8 /Eyes.h
parentdbb8401026c421d64a2962e6ac6eb900f6dc141e (diff)
Add xrender support
Optionally draw all components (except shape) with xrender. Enabled by default. Xlib rendering can be restored by "configure --without-xrender" or "xeyes +render". Signed-off-by: Dylan Simon <dylan@dylex.net> Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'Eyes.h')
-rw-r--r--Eyes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Eyes.h b/Eyes.h
index 239a127..d9893a3 100644
--- a/Eyes.h
+++ b/Eyes.h
@@ -35,6 +35,19 @@
#define XtNshapeWindow "shapeWindow"
#define XtCShapeWindow "ShapeWindow"
+#define XtNrender "render"
+
+enum EyesPart {
+ PART_CLEAR = -1,
+
+ PART_OUTLINE,
+ PART_CENTER,
+ PART_PUPIL,
+
+ PART_SHAPE,
+ PART_MAX
+};
+
typedef struct _EyesRec *EyesWidget; /* completely defined in EyesPrivate.h */
typedef struct _EyesClassRec *EyesWidgetClass; /* completely defined in EyesPrivate.h */