home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Sgm / GridP.h.z / GridP.h
C/C++ Source or Header  |  1996-03-14  |  4KB  |  133 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.  
  18. #ifndef _SgGridP_h
  19. #define _SgGridP_h
  20.  
  21. #include "Grid.h"
  22. #include <Xm/BulletinBP.h>
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. typedef struct _SgGridConstraintPart
  29. {
  30.     int         gravity;
  31.     Boolean     resizable_horiz, resizable_vert;
  32.     int         row, column;
  33.     Dimension   prefH, prefW;
  34.     int         cursorX, cursorY;
  35.     Boolean     moveOnly;
  36.     Boolean     builderAction;
  37.  
  38. #ifdef sgi
  39. /* Allow future extensions without breaking shared library compatibility */
  40.    caddr_t _SG_vendorExtension;
  41. #endif /* sgi */
  42. } SgGridConstraintPart, *SgGridConstraint;
  43.  
  44. typedef struct _SgGridConstraintRec
  45. {
  46.    XmManagerConstraintPart       manager;
  47.    SgGridConstraintPart          grid;
  48. } SgGridConstraintRec, *SgGridConstraintPtr;
  49.  
  50.  
  51. /*  Grid class structure  */
  52.  
  53. typedef struct _SgGridClassPart
  54. {
  55.    int foo;    /*  No new fields needed  */
  56. #ifdef sgi
  57. /* Allow future extensions without breaking shared library compatibility */
  58.    caddr_t _SG_vendorExtension;
  59. #endif /* sgi */
  60. } SgGridClassPart;
  61.  
  62.  
  63. /*  Full class record declaration for form class  */
  64.  
  65. typedef struct _SgGridClassRec
  66. {
  67.    CoreClassPart             core_class;
  68.    CompositeClassPart        composite_class;
  69.    ConstraintClassPart       constraint_class;
  70.    XmManagerClassPart        manager_class;
  71.    XmBulletinBoardClassPart  bulletin_board_class;
  72.    SgGridClassPart    grid_class;
  73. } SgGridClassRec;
  74.  
  75. externalref SgGridClassRec sgGridClassRec;
  76.  
  77. typedef struct _RowColumnInfo {
  78.     int        spring_constant;
  79.     Dimension  margin;
  80.     Dimension  size;
  81. } RowColumnInfo;
  82.  
  83. /*  The Grid instance record  */
  84.  
  85. typedef struct _SgGridPart
  86. {
  87.     Boolean        buildMode;
  88.     Boolean        automatic;
  89.     Dimension      default_spacing;
  90.     int            num_rows;
  91.     int            num_columns;
  92.     RowColumnInfo *row_info;
  93.     RowColumnInfo *col_info;
  94.     WidgetList     matrix;
  95.     Boolean        show_grid;
  96.     String         rowString;
  97.     String         colString;  
  98.     String         rowResizeString;  
  99.     String         colResizeString;  
  100.  
  101. #ifdef sgi
  102. /* Allow future extensions without breaking shared library compatibility */
  103.    caddr_t _SG_vendorExtension;
  104. #endif /* sgi */
  105. } SgGridPart;
  106.  
  107. /*  Full instance record declaration  */
  108.  
  109. typedef struct _SgGridRec
  110. {
  111.    CorePart            core;
  112.    CompositePart        composite;
  113.    ConstraintPart       constraint;
  114.    XmManagerPart        manager;
  115.    XmBulletinBoardPart  bulletin_board;
  116.    SgGridPart           grid;
  117. } SgGridRec;
  118.  
  119. /********    Private Function Declarations    ********/
  120. #ifdef _NO_PROTO
  121.  
  122. #else
  123.  
  124. #endif /* _NO_PROTO */
  125. /********    End Private Function Declarations    ********/
  126.  
  127. #ifdef __cplusplus
  128. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  129. #endif
  130.  
  131. #endif /* _SgGridP_h */
  132. /* DON'T ADD ANYTHING AFTER THIS #endif */
  133.