2 * $XConsortium: Repeater.h,v 1.4 94/04/17 20:12:38 jim Exp $
4 Copyright (c) 1989 X Consortium
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
27 * Author: Jim Fulton, MIT X Consortium
30 #ifndef _XawRepeater_h
31 #define _XawRepeater_h
33 #include <X11/Xaw/Command.h>
35 /*****************************************************************************
37 * Repeater Widget (subclass of Command)
39 * This widget is a push button that repeatedly fires when held down.
43 * Name Class Type Default
44 * ---- ----- ---- -------
46 * decay Decay int 5 milliseconds
47 * flash Boolean Boolean FALSE
48 * initialDelay Delay int 200 milliseconds
49 * minimumDelay MinimumDelay int 10 milliseconds
50 * repeatDelay Delay int 50 milliseconds
51 * startCallback StartCallback XtCallbackList NULL
52 * stopCallback StopCallback XtCallbackList NULL
54 *****************************************************************************/
56 /* new instance and class names */
57 #define XtNdecay "decay"
58 #define XtCDecay "Decay"
59 #define XtNinitialDelay "initialDelay"
60 #define XtCDelay "Delay"
61 #define XtNminimumDelay "minimumDelay"
62 #define XtCMinimumDelay "MinimumDelay"
63 #define XtNrepeatDelay "repeatDelay"
64 #define XtNflash "flash"
65 #define XtNstartCallback "startCallback"
66 #define XtCStartCallback "StartCallback"
67 #define XtNstopCallback "stopCallback"
68 #define XtCStopCallback "StopCallback"
71 /* external declarations */
72 extern WidgetClass repeaterWidgetClass
;
74 typedef struct _RepeaterClassRec
*RepeaterWidgetClass
;
75 typedef struct _RepeaterRec
*RepeaterWidget
;
77 #endif /* _XawRepeater_h */