xref: /386bsd/usr/X386/include/X11/Xaw/Clock.h (revision a2142627)
1 /*
2 * $XConsortium: Clock.h,v 1.29 90/10/22 14:43:12 converse Exp $
3 */
4 
5 
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
9 
10                         All Rights Reserved
11 
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
19 
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
27 
28 ******************************************************************/
29 
30 #ifndef _XawClock_h
31 #define _XawClock_h
32 
33 /***********************************************************************
34  *
35  * Clock Widget
36  *
37  ***********************************************************************/
38 
39 #include <X11/Xmu/Converters.h>
40 
41 /* Parameters:
42 
43  Name		     Class		RepType		Default Value
44  ----		     -----		-------		-------------
45  analog		     Boolean		Boolean		True
46  background	     Background		Pixel		white
47  backingStore	     BackingStore	BackingStore	default
48  border		     BorderColor	Pixel		Black
49  borderWidth	     BorderWidth	Dimension	1
50  chime		     Boolean		Boolean		False
51  destroyCallback     Callback		Pointer		NULL
52  font		     Font		XFontStruct*	fixed
53  foreground	     Foreground		Pixel		black
54  hand		     Foreground		Pixel		black
55  height		     Height		Dimension	164
56  highlight	     Foreground		Pixel		black
57  mappedWhenManaged   MappedWhenManaged	Boolean		True
58  padding	     Margin		int		8
59  update		     Interval		int		60 (seconds)
60  width		     Width		Dimension	164
61  x		     Position		Position	0
62  y		     Position		Position	0
63 
64 */
65 
66 /* Resource names used to the clock widget */
67 
68 		/* color of hands */
69 #define XtNhand "hands"
70 
71 
72 		/* Boolean: digital if FALSE */
73 #define XtNanalog "analog"
74 
75 		/* Boolean:  */
76 #define XtNchime "chime"
77 
78 		/* Int: amount of space around outside of clock */
79 #define XtNpadding "padding"
80 
81 typedef struct _ClockRec *ClockWidget;  /* completely defined in ClockPrivate.h */
82 typedef struct _ClockClassRec *ClockWidgetClass;    /* completely defined in ClockPrivate.h */
83 
84 extern WidgetClass clockWidgetClass;
85 
86 #endif /* _XawClock_h */
87 /* DON'T ADD STUFF AFTER THIS #endif */
88