summaryrefslogtreecommitdiff
path: root/Eyes.h
diff options
context:
space:
mode:
authorDylan Simon <dylan@dylex.net>2009-09-27 14:44:35 -0400
committerSung-Jin Park <sj76.park@samsung.com>2013-09-02 23:37:56 -0400
commit8a78b5283dd40bc38d2c1065f290a68a9c0d65bf (patch)
tree36a25fc8b364053ea0c126013eabaa7cb69075b8 /Eyes.h
parent221d31fb2f3b2a2989a983cb30f866f57b683f52 (diff)
downloadxeyes-8a78b5283dd40bc38d2c1065f290a68a9c0d65bf.tar.gz
xeyes-8a78b5283dd40bc38d2c1065f290a68a9c0d65bf.tar.bz2
xeyes-8a78b5283dd40bc38d2c1065f290a68a9c0d65bf.zip
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". Change-Id: Ib63621e450e6f75ef76a160634ae2186a7db9456 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 */