1/* 2* $Xorg: Clock.h,v 1.4 2001/02/09 02:05:39 xorgcvs Exp $ 3*/ 4 5 6/*********************************************************** 7 8Copyright 1987, 1988, 1998 The Open Group 9 10Permission to use, copy, modify, distribute, and sell this software and its 11documentation for any purpose is hereby granted without fee, provided that 12the above copyright notice appear in all copies and that both that 13copyright notice and this permission notice appear in supporting 14documentation. 15 16The above copyright notice and this permission notice shall be included in 17all copies or substantial portions of the Software. 18 19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 23AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 26Except as contained in this notice, the name of The Open Group shall not be 27used in advertising or otherwise to promote the sale, use or other dealings 28in this Software without prior written authorization from The Open Group. 29 30 31Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 32 33 All Rights Reserved 34 35Permission to use, copy, modify, and distribute this software and its 36documentation for any purpose and without fee is hereby granted, 37provided that the above copyright notice appear in all copies and that 38both that copyright notice and this permission notice appear in 39supporting documentation, and that the name of Digital not be 40used in advertising or publicity pertaining to distribution of the 41software without specific, written prior permission. 42 43DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 44ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 45DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 46ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 47WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 48ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 49SOFTWARE. 50 51******************************************************************/ 52/* $XFree86: xc/programs/xclock/Clock.h,v 1.11 2002/10/17 01:00:01 dawes Exp $ */ 53 54#ifndef _XawClock_h 55#define _XawClock_h 56 57/*********************************************************************** 58 * 59 * Clock Widget 60 * 61 ***********************************************************************/ 62 63#include <X11/Xmu/Converters.h> 64 65/* Parameters: 66 67 Name Class RepType Default Value 68 ---- ----- ------- ------------- 69 twentyfour Boolean Boolean True 70 analog Boolean Boolean True 71 background Background Pixel white 72 backingStore BackingStore BackingStore default 73 border BorderColor Pixel Black 74 borderWidth BorderWidth Dimension 1 75 chime Boolean Boolean False 76 destroyCallback Callback Pointer NULL 77 font Font XFontStruct* fixed 78 foreground Foreground Pixel black 79 hand Foreground Pixel black 80 height Height Dimension 164 81 highlight Foreground Pixel black 82 mappedWhenManaged MappedWhenManaged Boolean True 83 padding Margin int 8 84 utime Boolean Boolean False 85 update Interval int 60 (seconds) 86 width Width Dimension 164 87 x Position Position 0 88 y Position Position 0 89 90*/ 91 92/* Resource names used to the clock widget */ 93 94 /* color of hands */ 95#define XtNhand "hands" 96 97 98 /* Boolean: 24-hour if TRUE */ 99#define XtNtwentyfour "twentyfour" 100 101 /* Boolean: digital if FALSE */ 102#define XtNanalog "analog" 103 104 /* Boolean: only hour/minute if TRUE */ 105#define XtNbrief "brief" 106 107 /* String: will be used as format arg to 108 "strftime" if not empty string */ 109#define XtNstrftime "strftime" 110 111 /* Boolean: show seconds since Epoch if TRUE */ 112#define XtNutime "utime" 113 114 /* Boolean: */ 115#define XtNchime "chime" 116 117 /* Int: amount of space around outside of clock */ 118#define XtNpadding "padding" 119 120 /* Boolean: use Render extension if TRUE */ 121#define XtNrender "render" 122 123 /* Boolean: use backing pixmap for double buffering */ 124#define XtNbuffer "buffer" 125 126 /* RenderColor: colors for various clock elements */ 127#define XtNhourColor "hourColor" 128#define XtNminuteColor "minuteColor" 129#define XtNsecondColor "secondColor" 130#define XtNmajorColor "majorColor" 131#define XtNminorColor "minorColor" 132 133#define XtRXftColor "XftColor" 134 135#define XtNface "face" 136#define XtCFace "Face" 137#define XtRXftFont "XftFont" 138 139 /* Boolean: use sharp rendering for Render polygons */ 140#define XtNsharp "sharp" 141#define XtCSharp "Sharp" 142 143typedef struct _ClockRec *ClockWidget; /* completely defined in ClockP.h */ 144typedef struct _ClockClassRec *ClockWidgetClass; /* completely defined in ClockP.h */ 145 146extern WidgetClass clockWidgetClass; 147 148#endif /* _XawClock_h */ 149/* DON'T ADD STUFF AFTER THIS #endif */ 150