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