home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / ui / viewdesc.h < prev    next >
C/C++ Source or Header  |  1995-04-08  |  1KB  |  42 lines

  1.  
  2.  
  3.  
  4.  
  5. #ifndef _viewdesc_h_ /* Sun Dec 11 15:52:04 1994 */
  6. #define _viewdesc_h_
  7.  
  8.  
  9. // The view descriptor structure.
  10.  
  11. #include "ui/uidefs.h"
  12.  
  13. enum UI_ViewType {
  14.     View_None = 0,             View_ExOrToggleButton, View_Dialog,  
  15.     View_PushButton,           View_ToggleButton,     View_StringView,
  16.     View_Label,                View_TextView,         View_MenuItem,
  17.     View_Composite,            View_StringEditor,     View_OrButtonGroup,
  18.     View_ExOrButtonGroup,      View_HScrollBar,       View_VScrollBar,       
  19.     View_MultiSelectStringView
  20. };
  21.  
  22. // The ViewDescriptor is a passive representation of a single view object.
  23. // If this descriptor is that of a composite, then the "enclosed" field
  24. // points to the array of children, if any. 
  25.  
  26. struct UI_ViewDescriptor {
  27.     UI_ViewType type;
  28.     UI_ViewID   id;           // Id must be specified
  29.     UI_RectangleStruct shape; // Shape of this view. Origin is specified wrt
  30.                               // the parent's rectangle.
  31.     bool        tab_stop;     // Is this view a tab stop in the parent?
  32.     char*       title;        // Title
  33.     
  34.     UI_ViewDescriptor* enclosed; // NULL for SimpleVObjs. For composite
  35.                                  // children, must point to an array of
  36.                                  // ViewDescriptors, with the last one having
  37.                                  // a 0 for id and a View_None for type.
  38. };
  39.  
  40.  
  41. #endif /* _viewdesc_h_ */
  42.