Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:24

0001 /*
0002  *
0003 Copyright 1989, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024  *
0025  * Author:  Jim Fulton, MIT X Consortium
0026  */
0027 
0028 #ifndef _XawRepeaterP_h
0029 #define _XawRepeaterP_h
0030 
0031 #include <X11/Xaw/CommandP.h>
0032 #include <X11/Xaw/Repeater.h>
0033 
0034 /* new fields in widget class */
0035 typedef struct {
0036     XtPointer extension;
0037 } RepeaterClassPart;
0038 
0039 /* repeater widget class */
0040 typedef struct _RepeaterClassRec {
0041     CoreClassPart core_class;
0042     SimpleClassPart simple_class;
0043     LabelClassPart label_class;
0044     CommandClassPart command_class;
0045     RepeaterClassPart repeater_class;
0046 } RepeaterClassRec;
0047 
0048 typedef struct {
0049     /* resources */
0050     int initial_delay;          /* initialDelay/Delay */
0051     int repeat_delay;           /* repeatDelay/Delay */
0052     int minimum_delay;          /* minimumDelay/MinimumDelay */
0053     int decay;              /* decay to minimum delay */
0054     Boolean flash;          /* flash/Boolean */
0055     XtCallbackList start_callbacks; /* startCallback/StartCallback */
0056     XtCallbackList stop_callbacks;  /* stopCallback/StopCallback */
0057 
0058     /* private */
0059     int next_delay;         /* next amount for timer */
0060     XtIntervalId timer;         /* timer that will fire */
0061 #ifndef OLDXAW
0062     XtPointer pad[4];   /* for future use and keep binary compatibility */
0063 #endif
0064 } RepeaterPart;
0065 
0066 typedef struct _RepeaterRec {
0067     CorePart core;
0068     SimplePart simple;
0069     LabelPart label;
0070     CommandPart command;
0071     RepeaterPart repeater;
0072 } RepeaterRec;
0073 
0074                     /* milliseconds */
0075 #define REP_DEF_DECAY           5
0076 #define REP_DEF_INITIAL_DELAY       200
0077 #define REP_DEF_MINIMUM_DELAY       10
0078 #define REP_DEF_REPEAT_DELAY        50
0079 
0080 extern RepeaterClassRec repeaterClassRec;
0081 
0082 #endif /* _XawRepeaterP_h */