home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume14 / xchrom / part01 / Xchrom-1.6 / XchromP.h < prev   
Encoding:
C/C++ Source or Header  |  1991-08-26  |  1.2 KB  |  51 lines

  1. /*
  2.  * XchromP.h -- a CHROMACHRON clock widget. private header.
  3.  * Copyright (c) Olaf Heimburger 1990, 1991
  4.  * Last edited: Mon Aug 19 08:19:10 1991 by olafh (Olaf Heimburger) on gecko
  5.  */
  6. #ifndef _XtXchromP_h
  7. #define _XtXchromP_h
  8.  
  9. #include <X11/CoreP.h>
  10. #include "Xchrom.h"
  11.  
  12. typedef struct {
  13.     Pixel        foreground; /* frame color */
  14.     Pixel        color[NUMFIELDS];
  15.     int          frameOffset;
  16.     int          maskOffset;
  17.     int          timeOffset; /* in minutes */
  18.     int          circularFrame; /* shape of the frame */
  19.     /*
  20.      * non-resources (e.g. user can't set)
  21.      */
  22.     XtIntervalId intervalId;
  23.     GC           colorGC[FRAMECOLOR + 1];
  24.     Pixmap     colorPixmap;
  25.     XArc         slices[NUMFIELDS + 1];
  26.     int          savedHour;
  27.     int          savedMin;
  28.     int          arcSize;
  29.     int          squareSize;
  30.     Pixmap       wdwPixmap;
  31.     int          offset;
  32.     int          minOffset;
  33.     int          hourOffset;
  34. } XchromPart;
  35.  
  36. typedef struct _XchromRec {
  37.     CorePart    core;
  38.     XchromPart    xchrom;
  39. } XchromRec;
  40.  
  41. typedef struct {int dummy;} XchromClassPart;
  42.  
  43. typedef struct _XchromClassRec {
  44.     CoreClassPart    core_class;
  45.     XchromClassPart    xchrom_class;
  46. } XchromClassRec;
  47.  
  48. extern XchromClassRec xchromClassRec;
  49.  
  50. #endif _XtXchromP_h
  51.