home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / Tree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  3.9 KB  |  122 lines

  1. /*
  2.  * $XConsortium: Tree.h,v 1.11 91/05/04 18:59:13 rws Exp $
  3.  *
  4.  * Copyright 1990 Massachusetts Institute of Technology
  5.  * Copyright 1989 Prentice Hall
  6.  *
  7.  * Permission to use, copy, modify, and distribute this software for any
  8.  * purpose and without fee is hereby granted, provided that the above
  9.  * copyright notice appear in all copies and that both the copyright notice
  10.  * and this permission notice appear in supporting documentation.
  11.  * 
  12.  * M.I.T., Prentice Hall and the authors disclaim all warranties with regard
  13.  * to this software, including all implied warranties of merchantability and
  14.  * fitness.  In no event shall M.I.T., Prentice Hall or the authors be liable
  15.  * for any special, indirect or cosequential damages or any damages whatsoever
  16.  * resulting from loss of use, data or profits, whether in an action of
  17.  * contract, negligence or other tortious action, arising out of or in
  18.  * connection with the use or performance of this software.
  19.  * 
  20.  * Authors:  Jim Fulton, MIT X Consortium,
  21.  *           based on a version by Douglas Young, Prentice Hall
  22.  * 
  23.  * This widget is based on the Tree widget described on pages 397-419 of
  24.  * Douglas Young's book "The X Window System, Programming and Applications 
  25.  * with Xt OSF/Motif Edition."  The layout code has been rewritten to use
  26.  * additional blank space to make the structure of the graph easier to see
  27.  * as well as to support vertical trees.
  28.  */
  29.  
  30.  
  31. #ifndef _XawTree_h
  32. #define _XawTree_h
  33.  
  34.  
  35. /******************************************************************************
  36.  * 
  37.  * Tree Widget (subclass of ConstraintClass)
  38.  * 
  39.  ******************************************************************************
  40.  * 
  41.  * Parameters:
  42.  * 
  43.  *  Name                Class              Type            Default
  44.  *  ----                -----              ----            -------
  45.  * 
  46.  *  autoReconfigure     AutoReconfigure    Boolean         FALSE
  47.  *  background          Background         Pixel           XtDefaultBackground
  48.  *  foreground          Foreground         Pixel           XtDefaultForeground
  49.  *  gravity             Gravity            XtGravity       West
  50.  *  hSpace              HSpace             Dimension       20
  51.  *  lineWidth           LineWidth          Dimension       0
  52.  *  vSpace              VSpace             Dimension       6
  53.  * 
  54.  * 
  55.  * Constraint Resources attached to children:
  56.  * 
  57.  *  treeGC              TreeGC             GC              NULL
  58.  *  treeParent          TreeParent         Widget          NULL
  59.  * 
  60.  * 
  61.  *****************************************************************************/
  62.  
  63.                                         /* new instance field names */
  64. #ifndef _XtStringDefs_h_
  65. #define XtNhSpace "hSpace"
  66. #define XtNvSpace "vSpace"
  67. #define XtCHSpace "HSpace"
  68. #define XtCVSpace "VSpace"
  69. #endif
  70.  
  71. #define XtNautoReconfigure "autoReconfigure"
  72. #define XtNlineWidth "lineWidth"
  73. #define XtNtreeGC "treeGC"
  74. #define XtNtreeParent "treeParent"
  75. #define XtNgravity "gravity"
  76.  
  77. typedef int XtGravity;
  78.  
  79. #define XtRGravity "Gravity"
  80. #define XtEForget "forget"
  81. #define XtENorthWest "northwest"
  82. #define XtENorth "north"
  83. #define XtENorthEast "northeast"
  84. #define XtEWest "west"
  85. #define XtECenter "center"
  86. #define XtEEast "east"
  87. #define XtESouthWest "southwest"
  88. #define XtESouth "south"
  89. #define XtESouthEast "southeast"
  90. #define XtEStatic "static"
  91. #define XtEUnmap "unmap"
  92. #define XtEleft "left"
  93. #define XtEcenter "center"
  94. #define XtEright "right"
  95. #define XtEtop "top"
  96. #define XtEbottom "bottom"
  97.  
  98.  
  99.                                         /* new class field names */
  100. #define XtCAutoReconfigure "AutoReconfigure"
  101. #define XtCLineWidth "LineWidth"
  102. #define XtCTreeGC "TreeGC"
  103. #define XtCTreeParent "TreeParent"
  104. #define XtCGravity "Gravity"
  105.  
  106. #define XtRGC "GC"
  107.                                         /* external declarations */
  108. extern WidgetClass treeWidgetClass;
  109.  
  110. typedef struct _TreeClassRec *TreeWidgetClass;
  111. typedef struct _TreeRec      *TreeWidget;
  112.  
  113.  
  114. extern void XawTreeForceLayout (
  115. #if NeedFunctionPrototypes
  116.     Widget /* tree */
  117. #endif
  118. );
  119.  
  120.  
  121. #endif /* _XawTree_h */
  122.