diff options
Diffstat (limited to 'include/X11/Xaw/RepeaterP.h')
-rw-r--r-- | include/X11/Xaw/RepeaterP.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/include/X11/Xaw/RepeaterP.h b/include/X11/Xaw/RepeaterP.h index 0c82c4c..3336e23 100644 --- a/include/X11/Xaw/RepeaterP.h +++ b/include/X11/Xaw/RepeaterP.h @@ -25,6 +25,7 @@ in this Software without prior written authorization from The Open Group. * * Author: Jim Fulton, MIT X Consortium */ +/* $XFree86: xc/lib/Xaw/RepeaterP.h,v 1.8 2001/12/14 19:54:42 dawes Exp $ */ #ifndef _XawRepeaterP_h #define _XawRepeaterP_h @@ -32,11 +33,13 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xaw/CommandP.h> #include <X11/Xaw/Repeater.h> -typedef struct { /* new fields in widget class */ - int dummy; +/* new fields in widget class */ +typedef struct { + XtPointer extension; } RepeaterClassPart; -typedef struct _RepeaterClassRec { /* Repeater widget class */ +/* repeater widget class */ +typedef struct _RepeaterClassRec { CoreClassPart core_class; SimpleClassPart simple_class; LabelClassPart label_class; @@ -44,8 +47,8 @@ typedef struct _RepeaterClassRec { /* Repeater widget class */ RepeaterClassPart repeater_class; } RepeaterClassRec; -typedef struct { /* new fields in widget */ - /* resources... */ +typedef struct { + /* resources */ int initial_delay; /* initialDelay/Delay */ int repeat_delay; /* repeatDelay/Delay */ int minimum_delay; /* minimumDelay/MinimumDelay */ @@ -53,9 +56,13 @@ typedef struct { /* new fields in widget */ Boolean flash; /* flash/Boolean */ XtCallbackList start_callbacks; /* startCallback/StartCallback */ XtCallbackList stop_callbacks; /* stopCallback/StopCallback */ - /* private data... */ + + /* private */ int next_delay; /* next amount for timer */ XtIntervalId timer; /* timer that will fire */ +#ifndef OLDXAW + XtPointer pad[4]; /* for future use and keep binary compatability */ +#endif } RepeaterPart; typedef struct _RepeaterRec { @@ -66,14 +73,12 @@ typedef struct _RepeaterRec { RepeaterPart repeater; } RepeaterRec; -#define REP_DEF_DECAY 5 /* milliseconds */ -#define REP_DEF_INITIAL_DELAY 200 /* milliseconds */ -#define REP_DEF_MINIMUM_DELAY 10 /* milliseconds */ -#define REP_DEF_REPEAT_DELAY 50 /* milliseconds */ + /* milliseconds */ +#define REP_DEF_DECAY 5 +#define REP_DEF_INITIAL_DELAY 200 +#define REP_DEF_MINIMUM_DELAY 10 +#define REP_DEF_REPEAT_DELAY 50 -/* - * external declarations - */ extern RepeaterClassRec repeaterClassRec; #endif /* _XawRepeaterP_h */ |