home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume2 / xbrowser / part03 / option.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-03  |  1.9 KB  |  69 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.  
  14. #ifndef _option_h
  15. #define _option_h
  16.  
  17. /***********************************************************************
  18.  *
  19.  * Option Widget (subclassed of Forms widget)
  20.  *
  21.  ***********************************************************************/
  22.  
  23. /* Parameters:
  24.  
  25.  Name            Class        RepType        Default Value
  26.  ----            -----        -------        -------------
  27.  background             Background    pixel        White
  28.  border        BorderColor    pixel        Black
  29.  borderWidth             BorderWidth    int        1
  30.  destroyCallback         Callback    Pointer        NULL
  31.  height        Height        int        0
  32.  label                 Label        String        NULL
  33.  mappedWhenManaged       MappedWhenManaged  Boolean    True
  34.  maximumLength             Max        int        256
  35.  sensitive             Sensitive    Boolean        True
  36.  orientation        orientation    orientation    XtorientVertical
  37.  width                 Width        int        0
  38.  x                 Position    int        0
  39.  y                 Position    int        0
  40.  
  41. */
  42.  
  43.  
  44. #include <X11/Form.h>
  45.  
  46.  
  47. #define XtNorientation        "orientation"
  48.  
  49. typedef struct _OptionClassRec    *OptionWidgetClass;
  50. typedef struct _OptionRec    *OptionWidget;
  51.  
  52. extern WidgetClass optionWidgetClass;
  53.  
  54. extern void XtOptionAddOption(); /* parent, name, set */
  55.     /* Wiget parent; */
  56.     /* char *name; */
  57.     /* Boolean set; */
  58.             /* of all possible options only one may be selected
  59.             at a time */ 
  60.  
  61. extern int XtOptionGetSelection(); /* widget */
  62.     /* Widget w; */
  63.             /* returns the index of the currently selected
  64.             option; numbered from 1 and in the sequence
  65.             of creation */
  66.  
  67. #endif _option_h
  68. /* DON'T ADD STUFF AFTER THIS #endif */
  69.