home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / tree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  4.7 KB  |  126 lines

  1. /*
  2.  * $XConsortium: Tree.h,v 1.13 94/04/17 20:13:22 kaleb Exp $
  3.  *
  4.  
  5. Copyright (c) 1990, 1994  X Consortium
  6.  
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of the X Consortium shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from the X Consortium.
  27.  
  28.  * Copyright 1989 Prentice Hall
  29.  *
  30.  * Permission to use, copy, modify, and distribute this software for any
  31.  * purpose and without fee is hereby granted, provided that the above
  32.  * copyright notice appear in all copies and that both the copyright notice
  33.  * and this permission notice appear in supporting documentation.
  34.  * 
  35.  * Prentice Hall and the authors disclaim all warranties with regard
  36.  * to this software, including all implied warranties of merchantability and
  37.  * fitness.  In no event shall Prentice Hall or the authors be liable
  38.  * for any special, indirect or cosequential damages or any damages whatsoever
  39.  * resulting from loss of use, data or profits, whether in an action of
  40.  * contract, negligence or other tortious action, arising out of or in
  41.  * connection with the use or performance of this software.
  42.  * 
  43.  * Authors:  Jim Fulton, MIT X Consortium,
  44.  *           based on a version by Douglas Young, Prentice Hall
  45.  * 
  46.  * This widget is based on the Tree widget described on pages 397-419 of
  47.  * Douglas Young's book "The X Window System, Programming and Applications 
  48.  * with Xt OSF/Motif Edition."  The layout code has been rewritten to use
  49.  * additional blank space to make the structure of the graph easier to see
  50.  * as well as to support vertical trees.
  51.  */
  52.  
  53.  
  54. #ifndef _XawTree_h
  55. #define _XawTree_h
  56.  
  57. #include <X11/Xmu/Converters.h>
  58.  
  59. /******************************************************************************
  60.  * 
  61.  * Tree Widget (subclass of ConstraintClass)
  62.  * 
  63.  ******************************************************************************
  64.  * 
  65.  * Parameters:
  66.  * 
  67.  *  Name                Class              Type            Default
  68.  *  ----                -----              ----            -------
  69.  * 
  70.  *  autoReconfigure     AutoReconfigure    Boolean         FALSE
  71.  *  background          Background         Pixel           XtDefaultBackground
  72.  *  foreground          Foreground         Pixel           XtDefaultForeground
  73.  *  gravity             Gravity            XtGravity       West
  74.  *  hSpace              HSpace             Dimension       20
  75.  *  lineWidth           LineWidth          Dimension       0
  76.  *  vSpace              VSpace             Dimension       6
  77.  * 
  78.  * 
  79.  * Constraint Resources attached to children:
  80.  * 
  81.  *  treeGC              TreeGC             GC              NULL
  82.  *  treeParent          TreeParent         Widget          NULL
  83.  * 
  84.  * 
  85.  *****************************************************************************/
  86.  
  87.                                         /* new instance field names */
  88. #ifndef _XtStringDefs_h_
  89. #define XtNhSpace "hSpace"
  90. #define XtNvSpace "vSpace"
  91. #define XtCHSpace "HSpace"
  92. #define XtCVSpace "VSpace"
  93. #endif
  94.  
  95. #define XtNautoReconfigure "autoReconfigure"
  96. #define XtNlineWidth "lineWidth"
  97. #define XtNtreeGC "treeGC"
  98. #define XtNtreeParent "treeParent"
  99. #define XtNgravity "gravity"
  100.  
  101.                                         /* new class field names */
  102. #define XtCAutoReconfigure "AutoReconfigure"
  103. #define XtCLineWidth "LineWidth"
  104. #define XtCTreeGC "TreeGC"
  105. #define XtCTreeParent "TreeParent"
  106. #define XtCGravity "Gravity"
  107.  
  108. #define XtRGC "GC"
  109.                                         /* external declarations */
  110. extern WidgetClass treeWidgetClass;
  111.  
  112. typedef struct _TreeClassRec *TreeWidgetClass;
  113. typedef struct _TreeRec      *TreeWidget;
  114.  
  115. _XFUNCPROTOBEGIN
  116.  
  117. extern void XawTreeForceLayout (
  118. #if NeedFunctionPrototypes
  119.     Widget /* tree */
  120. #endif
  121. );
  122.  
  123. _XFUNCPROTOEND
  124.  
  125. #endif /* _XawTree_h */
  126.