1117N/A/*
1447N/A * $XConsortium: RepeaterP.h,v 1.4 94/04/17 20:12:39 jim Exp $
1117N/A *
1117N/ACopyright (c) 1989 X Consortium
1117N/A
1117N/APermission is hereby granted, free of charge, to any person obtaining a copy
1117N/Aof this software and associated documentation files (the "Software"), to deal
1117N/Ain the Software without restriction, including without limitation the rights
1117N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1117N/Acopies of the Software, and to permit persons to whom the Software is
1117N/Afurnished to do so, subject to the following conditions:
1117N/A
1117N/AThe above copyright notice and this permission notice shall be included in
1117N/Aall copies or substantial portions of the Software.
1117N/A
1117N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1117N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1117N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1117N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
1117N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1117N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1117N/A
1117N/AExcept as contained in this notice, the name of the X Consortium shall not be
1117N/Aused in advertising or otherwise to promote the sale, use or other dealings
1117N/Ain this Software without prior written authorization from the X Consortium.
1117N/A *
1117N/A * Author: Jim Fulton, MIT X Consortium
1117N/A */
1117N/A
1117N/A#ifndef _XawRepeaterP_h
1117N/A#define _XawRepeaterP_h
1117N/A
1117N/A#include <X11/Xaw/CommandP.h>
1447N/A#include <X11/Xaw/Repeater.h>
1117N/A
1117N/Atypedef struct { /* new fields in widget class */
1117N/A int dummy;
1117N/A} RepeaterClassPart;
1117N/A
1117N/Atypedef struct _RepeaterClassRec { /* Repeater widget class */
1196N/A CoreClassPart core_class;
1117N/A SimpleClassPart simple_class;
1117N/A LabelClassPart label_class;
1117N/A CommandClassPart command_class;
1117N/A RepeaterClassPart repeater_class;
1117N/A} RepeaterClassRec;
1117N/A
1117N/Atypedef struct { /* new fields in widget */
1117N/A /* resources... */
1117N/A int initial_delay; /* initialDelay/Delay */
1117N/A int repeat_delay; /* repeatDelay/Delay */
1117N/A int minimum_delay; /* minimumDelay/MinimumDelay */
1117N/A int decay; /* decay to minimum delay */
1117N/A Boolean flash; /* flash/Boolean */
1117N/A XtCallbackList start_callbacks; /* startCallback/StartCallback */
1447N/A XtCallbackList stop_callbacks; /* stopCallback/StopCallback */
1117N/A /* private data... */
1137N/A int next_delay; /* next amount for timer */
1117N/A XtIntervalId timer; /* timer that will fire */
1117N/A} RepeaterPart;
typedef struct _RepeaterRec {
CorePart core;
SimplePart simple;
LabelPart label;
CommandPart command;
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 */
/*
* external declarations
*/
extern RepeaterClassRec repeaterClassRec;
#endif /* _XawRepeaterP_h */