2 * $XConsortium: RepeaterP.h,v 1.4 94/04/17 20:12:39 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 _XawRepeaterP_h
31 #define _XawRepeaterP_h
33 #include <X11/Xaw/CommandP.h>
34 #include <X11/Xaw/Repeater.h>
36 typedef struct { /* new fields in widget class */
40 typedef struct _RepeaterClassRec
{ /* Repeater widget class */
41 CoreClassPart core_class
;
42 SimpleClassPart simple_class
;
43 LabelClassPart label_class
;
44 CommandClassPart command_class
;
45 RepeaterClassPart repeater_class
;
48 typedef struct { /* new fields in widget */
50 int initial_delay
; /* initialDelay/Delay */
51 int repeat_delay
; /* repeatDelay/Delay */
52 int minimum_delay
; /* minimumDelay/MinimumDelay */
53 int decay
; /* decay to minimum delay */
54 Boolean flash
; /* flash/Boolean */
55 XtCallbackList start_callbacks
; /* startCallback/StartCallback */
56 XtCallbackList stop_callbacks
; /* stopCallback/StopCallback */
58 int next_delay
; /* next amount for timer */
59 XtIntervalId timer
; /* timer that will fire */
62 typedef struct _RepeaterRec
{
67 RepeaterPart repeater
;
70 #define REP_DEF_DECAY 5 /* milliseconds */
71 #define REP_DEF_INITIAL_DELAY 200 /* milliseconds */
72 #define REP_DEF_MINIMUM_DELAY 10 /* milliseconds */
73 #define REP_DEF_REPEAT_DELAY 50 /* milliseconds */
76 * external declarations
78 extern RepeaterClassRec repeaterClassRec
;
80 #endif /* _XawRepeaterP_h */