home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkAlignmentGroup.h.z / VkAlignmentGroup.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.2 KB  |  58 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef VKAlignmentGroup_H
  18. #define VKAlignmentGroup_H
  19.  
  20. #include <Vk/VkWidgetList.h>
  21.  
  22. class VkComponent;
  23. class VkOptionMenu;
  24.  
  25. class VkAlignmentGroup : public VkWidgetList{
  26.     
  27.   public:
  28.     
  29.      VkAlignmentGroup ( );
  30.     ~VkAlignmentGroup ( );
  31.  
  32.      virtual  void add(Widget);
  33.      virtual  void add(VkComponent*);
  34.      virtual  void add(VkOptionMenu*);
  35.  
  36.      void alignLeft();
  37.      void alignRight(); // Not yet implemented
  38.      void alignTop();
  39.      void alignBottom(); // Not yet implemented
  40.      void alignWidth();
  41.      void alignHeight();
  42.      void distributeVertical(); // Not yet implemented
  43.      void distributeHorizontal(); // Not yet implemented
  44.      void makeNormal();  // Not yet implemented
  45.  
  46.      Dimension  width() { return _maxWidth; }
  47.      Dimension  height() { return _maxHeight; }
  48.      Position  x() { return _x; }
  49.      Position  y() { return _y; }
  50.  
  51.   protected:
  52.  
  53.     Dimension _maxWidth, _maxHeight;
  54.     Position _x, _y;
  55. };
  56. #endif
  57.  
  58.