source: trunk/athena/etc/xdm/xlogin/ClockP.h @ 8288

Revision 8288, 3.0 KB checked in by cfields, 29 years ago (diff)
Include Clock.h locally.
Line 
1/*
2* $XConsortium: ClockP.h,v 1.21 90/10/22 14:43:22 converse Exp $
3*/
4
5
6/***********************************************************
7Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
9
10                        All Rights Reserved
11
12Permission to use, copy, modify, and distribute this software and its
13documentation for any purpose and without fee is hereby granted,
14provided that the above copyright notice appear in all copies and that
15both that copyright notice and this permission notice appear in
16supporting documentation, and that the names of Digital or MIT not be
17used in advertising or publicity pertaining to distribution of the
18software without specific, written prior permission. 
19
20DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26SOFTWARE.
27
28******************************************************************/
29
30#ifndef _XawClockP_h
31#define _XawClockP_h
32
33#include <X11/Xos.h>            /* Needed for struct tm. */
34#include "Clock.h"
35#include <X11/Xaw/SimpleP.h>
36
37#define SEG_BUFF_SIZE           128
38#define ASCII_TIME_BUFLEN       32      /* big enough for 26 plus slop */
39
40/* New fields for the clock widget instance record */
41typedef struct {
42         Pixel  fgpixel;        /* color index for text */
43         Pixel  Hipixel;        /* color index for Highlighting */
44         Pixel  Hdpixel;        /* color index for hands */
45         XFontStruct    *font;  /* font for text */
46         GC     myGC;           /* pointer to GraphicsContext */
47         GC     EraseGC;        /* eraser GC */
48         GC     HandGC;         /* Hand GC */
49         GC     HighGC;         /* Highlighting GC */
50/* start of graph stuff */
51         int    update;         /* update frequence */
52         Dimension radius;              /* radius factor */
53         int    backing_store;  /* backing store type */
54         Boolean chime;
55         Boolean beeped;
56         Boolean analog;
57         Boolean show_second_hand;
58         Dimension second_hand_length;
59         Dimension minute_hand_length;
60         Dimension hour_hand_length;
61         Dimension hand_width;
62         Dimension second_hand_width;
63         Position centerX;
64         Position centerY;
65         int    numseg;
66         int    padding;
67         XPoint segbuff[SEG_BUFF_SIZE];
68         XPoint *segbuffptr;
69         XPoint *hour, *sec;
70         struct tm  otm ;
71         XtIntervalId interval_id;
72         char prev_time_string[ASCII_TIME_BUFLEN];
73   } ClockPart;
74
75/* Full instance record declaration */
76typedef struct _ClockRec {
77   CorePart core;
78   SimplePart simple;
79   ClockPart clock;
80   } ClockRec;
81
82/* New fields for the Clock widget class record */
83typedef struct {int dummy;} ClockClassPart;
84
85/* Full class record declaration. */
86typedef struct _ClockClassRec {
87   CoreClassPart core_class;
88   SimpleClassPart simple_class;
89   ClockClassPart clock_class;
90   } ClockClassRec;
91
92/* Class pointer. */
93extern ClockClassRec clockClassRec;
94
95#endif /* _XawClockP_h */
Note: See TracBrowser for help on using the repository browser.