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 / Grid.h.z / Grid.h
C/C++ Source or Header  |  1996-03-14  |  4KB  |  118 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 _SgGrid_h
  19. #define _SgGrid_h
  20.  
  21.  
  22. #include <Xm/Xm.h>
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. /*  Grid Widget  */
  29.  
  30. externalref WidgetClass sgGridWidgetClass;
  31.  
  32. typedef struct _SgGridClassRec * SgGridWidgetClass;
  33. typedef struct _SgGridRec      * SgGridWidget;
  34.  
  35. /* ifndef for Fast Subclassing  */
  36.  
  37. #ifndef SgIsGrid
  38. #define SgIsGrid(w)    XtIsSubclass(w, sgGridWidgetClass)
  39. #endif  /* SgIsGrid */
  40.  
  41. /********    Public Function Declarations    ********/
  42. #ifdef _NO_PROTO
  43.  
  44. extern Widget SgCreateGrid() ;
  45. extern Widget SgCreateGridDialog() ;
  46. extern void SgGridSetColumnResizability();
  47. extern void SgGridSetRowResizability();
  48. extern void SgGridSetColumnMargin();
  49. extern void SgGridSetRowMargin();
  50. #else
  51. extern void SgGridSetColumnResizability(
  52.                   Widget widget,
  53.                   int col,
  54.                   int resizability);
  55. extern void SgGridSetRowResizability(
  56.                    Widget widget,
  57.                    int row,
  58.                    int resizability);
  59. extern void SgGridSetColumnMargin(Widget widget,
  60.                   int col,
  61.                   Dimension margin);
  62. extern void SgGridSetRowMargin(
  63.                    Widget widget,
  64.                    int row,
  65.                    Dimension margin);
  66. extern Widget SgCreateGrid( 
  67.                         Widget parent,
  68.                         char *name,
  69.                         ArgList arglist,
  70.                         Cardinal argcount) ;
  71. extern Widget SgCreateGridDialog( 
  72.                         Widget parent,
  73.                         char *name,
  74.                         ArgList arglist,
  75.                         Cardinal argcount) ;
  76.  
  77. #endif /* _NO_PROTO */
  78. /********    End Public Function Declarations    ********/
  79.  
  80. #define XmNnumRows             "numRows"
  81. #define XmCNumRows             "NumRows"
  82. #define XmNrow                 "row"
  83. #define XmCRow                 "Row"
  84. #define XmNcolumn              "column"
  85. #define XmCColumn              "Column"
  86.  
  87. #define XmNresizeVertical     "resizeVertical"
  88. #define XmNresizeHorizontal   "resizeHorizontal"
  89. #define XmCResizeVertical     "ResizeVertical"
  90. #define XmCResizeHorizontal   "ResizeHorizontal"
  91.  
  92. #define XmNshowGrid     "showGrid"
  93. #define XmCShowGrid     "ShowGrid"
  94.  
  95. #define XmCGravity   "Gravity"
  96. #define XmNgravity   "gravity"
  97. #define XmRGravity   "Gravity"
  98.  
  99. #define XmNautoLayout   "autoLayout"
  100. #define XmCAutoLayout   "AutoLayout"
  101.  
  102. #define XmNdefaultSpacing   "defaultSpacing"
  103. #define XmCDefaultSpacing   "DefaultSpacing"
  104. #define XmNrowResizable   "rowResizable"
  105. #define XmCRowResizable   "RowResizable"
  106. #define XmNcolumnResizable   "columnResizable"
  107. #define XmCColumnResizable   "ColumnResizable"
  108. #define XmNrowInfo   "rowInfo"
  109. #define XmNcolInfo   "colInfo"
  110.  
  111. #ifdef __cplusplus
  112. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  113. #endif
  114.  
  115.  
  116. #endif /* _SgGrid_h */
  117. /* DON'T ADD ANYTHING AFTER THIS #endif */
  118.