EyesP.h revision 2ddb6cf1
1/* 2* $XConsortium: EyesP.h,v 1.9 90/12/01 13:04:43 rws Exp $ 3*/ 4 5#ifndef _EyesP_h 6#define _EyesP_h 7 8#include "Eyes.h" 9#include <X11/CoreP.h> 10#ifdef XRENDER 11#include <X11/extensions/Xrender.h> 12#endif 13#include "transform.h" 14 15#define SEG_BUFF_SIZE 128 16 17/* New fields for the eyes widget instance record */ 18typedef struct { 19 Pixel pixel[PART_SHAPE]; 20 GC gc[PART_MAX]; 21/* start of graph stuff */ 22 int backing_store; /* backing store variety */ 23 Boolean reverse_video; /* swap fg and bg pixels */ 24 Boolean shape_window; /* use SetWindowShapeMask */ 25 int update; /* current timeout index */ 26 TPoint mouse; /* old mouse position */ 27 TPoint pupil[2]; /* pupil position */ 28 Transform t; 29 Transform maskt; 30 XtIntervalId interval_id; 31 Pixmap shape_mask; /* window shape */ 32#ifdef XRENDER 33 Boolean render; 34 Picture picture; 35 Picture fill[PART_SHAPE]; 36#endif 37 Boolean distance; 38 } EyesPart; 39 40/* Full instance record declaration */ 41typedef struct _EyesRec { 42 CorePart core; 43 EyesPart eyes; 44 } EyesRec; 45 46/* New fields for the Eyes widget class record */ 47typedef struct {int dummy;} EyesClassPart; 48 49/* Full class record declaration. */ 50typedef struct _EyesClassRec { 51 CoreClassPart core_class; 52 EyesClassPart eyes_class; 53 } EyesClassRec; 54 55/* Class pointer. */ 56extern EyesClassRec eyesClassRec; 57 58#endif /* _EyesP_h */ 59