swi-prolog: update to 9.2.9
[oi-userland.git] / components / x11 / libXaw5 / src / X11 / Tree.h
blobfde1117bbe412597257fb1ce24f77f18aa80bdcf
1 /*
2 * $XConsortium: Tree.h,v 1.13 94/04/17 20:13:22 kaleb Exp $
5 Copyright (c) 1990, 1994 X Consortium
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:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
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.
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.
28 * Copyright 1989 Prentice Hall
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.
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.
43 * Authors: Jim Fulton, MIT X Consortium,
44 * based on a version by Douglas Young, Prentice Hall
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.
54 #ifndef _XawTree_h
55 #define _XawTree_h
57 #include <X11/Xmu/Converters.h>
59 /******************************************************************************
61 * Tree Widget (subclass of ConstraintClass)
63 ******************************************************************************
65 * Parameters:
67 * Name Class Type Default
68 * ---- ----- ---- -------
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
79 * Constraint Resources attached to children:
81 * treeGC TreeGC GC NULL
82 * treeParent TreeParent Widget NULL
85 *****************************************************************************/
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
95 #define XtNautoReconfigure "autoReconfigure"
96 #define XtNlineWidth "lineWidth"
97 #define XtNtreeGC "treeGC"
98 #define XtNtreeParent "treeParent"
99 #define XtNgravity "gravity"
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"
108 #define XtRGC "GC"
109 /* external declarations */
110 extern WidgetClass treeWidgetClass;
112 typedef struct _TreeClassRec *TreeWidgetClass;
113 typedef struct _TreeRec *TreeWidget;
115 _XFUNCPROTOBEGIN
117 extern void XawTreeForceLayout (
118 #if NeedFunctionPrototypes
119 Widget /* tree */
120 #endif
123 _XFUNCPROTOEND
125 #endif /* _XawTree_h */