home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / repeater.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  2.8 KB  |  78 lines

  1. /*
  2.  * $XConsortium: Repeater.h,v 1.4 94/04/17 20:12:38 jim Exp $
  3.  *
  4. Copyright (c) 1989  X Consortium
  5.  
  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:
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  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.
  22.  
  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.
  26.  *
  27.  * Author:  Jim Fulton, MIT X Consortium
  28.  */
  29.  
  30. #ifndef _XawRepeater_h
  31. #define _XawRepeater_h
  32.  
  33. #include <X11/Xaw/Command.h>
  34.  
  35. /*****************************************************************************
  36.  * 
  37.  * Repeater Widget (subclass of Command)
  38.  * 
  39.  * This widget is a push button that repeatedly fires when held down.
  40.  * 
  41.  * Parameters:
  42.  * 
  43.  *  Name        Class        Type        Default
  44.  *  ----        -----        ----        -------
  45.  * 
  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
  53.  * 
  54.  *****************************************************************************/
  55.  
  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"
  69.  
  70.  
  71.                     /* external declarations */
  72. extern WidgetClass repeaterWidgetClass;
  73.  
  74. typedef struct _RepeaterClassRec *RepeaterWidgetClass;
  75. typedef struct _RepeaterRec      *RepeaterWidget;
  76.  
  77. #endif /* _XawRepeater_h */
  78.