home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume2 / xbrowser / part03 / toggle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-03  |  2.0 KB  |  70 lines

  1. /*
  2.  * Systems Sciences Laboratory, Webster Research Center
  3.  *
  4.  * Copyright (c) 1988 Xerox Corporation.  All rights reserved.
  5.  *
  6.  * Copyright protection claimed includes all forms and matters of copyrightable
  7.  * material and information now allowed by statutory or judicial lay or
  8.  * herinafter granted, including without limitation, material generated from
  9.  * the software programs which are displayed on the screen such as icons,
  10.  * screen display looks, etc.
  11.  */
  12.  
  13. #ifndef _XtToggle_h
  14. #define _XtToggle_h
  15.  
  16. /***********************************************************************
  17.  *
  18.  * Toggle Widget (subclassed from the Command widget); callback is
  19.  *    ignored
  20.  *
  21.  ***********************************************************************/
  22.  
  23. #include <X11/CommandP.h>
  24.  
  25. /* Resources:
  26.  
  27.  Name             Class        RepType        Default Value
  28.  ----             -----        -------        -------------
  29.  background         Background        pixel        White
  30.  border         BorderColor    pixel        Black
  31.  borderWidth         BorderWidth    int        0
  32.  cursor         Cursor        Cursor        hand2
  33.  destroyCallback   Callback        Pointer        NULL
  34.  font             Font        FontStruct    fixed
  35.  foreground         Foreground        pixel        Black
  36.  height         Height        int        text height
  37.  highlightThickness  Thickness        int        2
  38.  insensitiveBorder Insensitive        Pixmap        Gray
  39.  internalHeight    Height        int        2
  40.  internalWidth         Width        int        4
  41.  justify         Justify        Justify        Center
  42.  label             Label        String        NULL
  43.  state             State        State        ToggleOn
  44.  mappedWhenManaged MappedWhenManaged    Boolean        True
  45.  sensitive         Sensitive        Boolean        True
  46.  width             Width        int        text width
  47.  x             Position        int        0
  48.  y             Position        int        0
  49.  
  50. */
  51.  
  52. #ifndef _XtState_e
  53. #define _XtState_e
  54.  
  55. typedef enum {
  56.     XtToggleOff = 0,     /* toggle button is off & unset   */
  57.     XtToggleOn        /* toggle button is on & set  */
  58. } XtState;
  59. #endif _XtState_e
  60.  
  61. #define XtNstate        "state"
  62.  
  63. extern WidgetClass    toggleWidgetClass;
  64.  
  65. typedef struct _ToggleClassRec   *ToggleWidgetClass;
  66. typedef struct _ToggleRec        *ToggleWidget;
  67.  
  68. #endif _XtToggle_h
  69. /* DON'T ADD STUFF AFTER THIS */
  70.