summaryrefslogtreecommitdiff
path: root/EyesP.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
commitdfc0320568e5237fff45b3f7fb6f332d1bf5e9bf (patch)
tree5cf2915b722b8c0d9d570a5bf0874ea406f9ac95 /EyesP.h
Initial revisionXORG-STABLE
Diffstat (limited to 'EyesP.h')
-rw-r--r--EyesP.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/EyesP.h b/EyesP.h
new file mode 100644
index 0000000..7dea77a
--- /dev/null
+++ b/EyesP.h
@@ -0,0 +1,54 @@
+/*
+* $XConsortium: EyesP.h,v 1.9 90/12/01 13:04:43 rws Exp $
+*/
+
+#ifndef _EyesP_h
+#define _EyesP_h
+
+#include "Eyes.h"
+#include <X11/CoreP.h>
+#include "transform.h"
+
+#define SEG_BUFF_SIZE 128
+
+/* New fields for the eyes widget instance record */
+typedef struct {
+ Pixel puppixel; /* foreground pixel */
+ Pixel outline; /* outline pixel */
+ Pixel center; /* inside pixel */
+ GC outGC; /* pointer to GraphicsContext */
+ GC pupGC; /* pointer to GraphicsContext */
+ GC centerGC; /* pointer to GraphicsContext */
+ GC shapeGC; /* pointer to GraphicsContext */
+/* start of graph stuff */
+ int backing_store; /* backing store variety */
+ Boolean reverse_video; /* swap fg and bg pixels */
+ Boolean shape_window; /* use SetWindowShapeMask */
+ int update; /* current timeout index */
+ TPoint mouse; /* old mouse position */
+ TPoint pupil[2]; /* pupil position */
+ Transform t;
+ Transform maskt;
+ XtIntervalId interval_id;
+ Pixmap shape_mask; /* window shape */
+ } EyesPart;
+
+/* Full instance record declaration */
+typedef struct _EyesRec {
+ CorePart core;
+ EyesPart eyes;
+ } EyesRec;
+
+/* New fields for the Eyes widget class record */
+typedef struct {int dummy;} EyesClassPart;
+
+/* Full class record declaration. */
+typedef struct _EyesClassRec {
+ CoreClassPart core_class;
+ EyesClassPart eyes_class;
+ } EyesClassRec;
+
+/* Class pointer. */
+extern EyesClassRec eyesClassRec;
+
+#endif /* _EyesP_h */