home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume2 / xbrowser / part03 / optionP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-03  |  1.6 KB  |  61 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. /* Private definitions for option widget */
  15.  
  16. #ifndef _optiongP_h
  17. #define _optionP_h
  18.  
  19. #include "option.h"
  20. #include "toggle.h"
  21. #include <X11/FormP.h>
  22.  
  23. typedef struct {int empty;} OptionClassPart;
  24.  
  25. typedef struct _OptionClassRec {
  26.     CoreClassPart        core_class;
  27.     CompositeClassPart        composite_class;
  28.     ConstraintClassPart    constraint_class;
  29.     FormClassPart        form_class;
  30.     OptionClassPart        option_class;
  31. } OptionClassRec;
  32.  
  33. extern OptionClassRec optionClassRec;
  34.  
  35. typedef struct _OptionPart {
  36.     /* resources */
  37.     String        label;        /* title of option */
  38.     XtOrientation    orientation;    /* orientation of options */
  39.     /* private data */
  40.     Widget        labelW;        /* widget to display description*/
  41.     int         select;        /* index of currently selected 
  42.                     toggle widget */
  43. } OptionPart;
  44.  
  45. typedef struct _OptionRec {
  46.     CorePart        core;
  47.     CompositePart    composite;
  48.     ConstraintPart    constraint;
  49.     FormPart        form;
  50.     OptionPart        option;
  51. } OptionRec;
  52.  
  53. typedef struct {int empty;} OptionConstraintsPart;
  54.  
  55. typedef struct _OptionConstraintsRec {
  56.     FormConstraintsPart    form;
  57.     OptionConstraintsPart    option;
  58. } OptionConstraintsRec, *OptionConstraints;
  59.  
  60. #endif _optionP_h
  61.