home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XFILEMAN / XFILEMAN.TAR / xfilemanager / ClockP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  1.5 KB  |  62 lines

  1. /*
  2.  * $XConsortium: ClockP.h,v 1.8 90/12/01 13:03:54 rws Exp $
  3.  */
  4.  
  5. #ifndef _ClockP_h
  6. #define _ClockP_h
  7.  
  8. #include "Clock.h"
  9. #include <X11/CoreP.h>
  10. #include "transform.h"
  11.  
  12. #define POLY_SIZE    6
  13.  
  14. /* New fields for the clock widget instance record */
  15. typedef struct {
  16.     Pixel        minute;
  17.     Pixel        hour;
  18.     Pixel        jewel;
  19.     GC        minuteGC;
  20.     GC        hourGC;
  21.     GC        jewelGC;
  22.     GC        eraseGC;
  23.     GC        shapeGC;    /* pointer to GraphicsContext */
  24. /* start of graph stuff */
  25.     int        backing_store;    /* backing store variety */
  26.     Boolean        shape_window;    /* use SetWindowShapeMask */
  27.     Boolean        transparent;    /* make window transparent */
  28.     float        border_size;
  29.     float        jewel_size;
  30.     XtIntervalId    interval_id;
  31.     Transform    t;
  32.     Transform    maskt;
  33.     Pixmap        shape_mask;    /* window shape */
  34.     int        shape_width;    /* window width when shape last made */
  35.     int        shape_height;    /* window height when shape last made */
  36.     double        hour_angle;    /* hour hand position */
  37.     double        minute_angle;    /* minute hand position */
  38.     int        polys_valid;    /* polygons contain good data */
  39.     TPoint        minute_poly[POLY_SIZE];    /* polygon for minute hand */
  40.     TPoint        hour_poly[POLY_SIZE];    /* polygon for hour hand */
  41. } ClockPart;
  42.  
  43. /* Full instance record declaration */
  44. typedef struct _ClockRec {
  45.     CorePart core;
  46.     ClockPart clock;
  47. } ClockRec;
  48.  
  49. /* New fields for the Clock widget class record */
  50. typedef struct {int dummy;} ClockClassPart;
  51.  
  52. /* Full class record declaration. */
  53. typedef struct _ClockClassRec {
  54.     CoreClassPart core_class;
  55.     ClockClassPart clock_class;
  56. } ClockClassRec;
  57.  
  58. /* Class pointer. */
  59. extern ClockClassRec clockClassRec;
  60.  
  61. #endif /* _ClockP_h */
  62.