Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:37

0001 /*
0002  *
0003 
0004 Copyright 1990, 1994, 1998  The Open Group
0005 
0006 Permission to use, copy, modify, distribute, and sell this software and its
0007 documentation for any purpose is hereby granted without fee, provided that
0008 the above copyright notice appear in all copies and that both that
0009 copyright notice and this permission notice appear in supporting
0010 documentation.
0011 
0012 The above copyright notice and this permission notice shall be included in
0013 all copies or substantial portions of the Software.
0014 
0015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0018 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0019 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0020 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0021 
0022 Except as contained in this notice, the name of The Open Group shall not be
0023 used in advertising or otherwise to promote the sale, use or other dealings
0024 in this Software without prior written authorization from The Open Group.
0025 
0026  * Copyright 1989 Prentice Hall
0027  *
0028  * Permission to use, copy, modify, and distribute this software for any
0029  * purpose and without fee is hereby granted, provided that the above
0030  * copyright notice appear in all copies and that both the copyright notice
0031  * and this permission notice appear in supporting documentation.
0032  *
0033  * Prentice Hall and the authors disclaim all warranties with regard
0034  * to this software, including all implied warranties of merchantability and
0035  * fitness.  In no event shall Prentice Hall or the authors be liable
0036  * for any special, indirect or cosequential damages or any damages whatsoever
0037  * resulting from loss of use, data or profits, whether in an action of
0038  * contract, negligence or other tortious action, arising out of or in
0039  * connection with the use or performance of this software.
0040  *
0041  * Authors:  Jim Fulton, MIT X Consortium,
0042  *           based on a version by Douglas Young, Prentice Hall
0043  *
0044  * This widget is based on the Tree widget described on pages 397-419 of
0045  * Douglas Young's book "The X Window System, Programming and Applications
0046  * with Xt OSF/Motif Edition."  The layout code has been rewritten to use
0047  * additional blank space to make the structure of the graph easier to see
0048  * as well as to support vertical trees.
0049  */
0050 
0051 #ifndef _XawTree_h
0052 #define _XawTree_h
0053 
0054 #include <X11/Xmu/Converters.h>
0055 
0056 /******************************************************************************
0057  *
0058  * Tree Widget (subclass of ConstraintClass)
0059  *
0060  ******************************************************************************
0061  *
0062  * Parameters:
0063  *
0064  *  Name                Class              Type            Default
0065  *  ----                -----              ----            -------
0066  *
0067  *  autoReconfigure     AutoReconfigure    Boolean         FALSE
0068  *  background          Background         Pixel           XtDefaultBackground
0069  *  foreground          Foreground         Pixel           XtDefaultForeground
0070  *  gravity             Gravity            XtGravity       West
0071  *  hSpace              HSpace             Dimension       20
0072  *  lineWidth           LineWidth          Dimension       0
0073  *  vSpace              VSpace             Dimension       6
0074  *
0075  *
0076  * Constraint Resources attached to children:
0077  *
0078  *  treeGC              TreeGC             GC              NULL
0079  *  treeParent          TreeParent         Widget          NULL
0080  *
0081  *
0082  *****************************************************************************/
0083 
0084                                         /* new instance field names */
0085 #ifndef _XtStringDefs_h_
0086 #define XtNhSpace "hSpace"
0087 #define XtNvSpace "vSpace"
0088 #define XtCHSpace "HSpace"
0089 #define XtCVSpace "VSpace"
0090 #endif
0091 
0092 #define XtNautoReconfigure "autoReconfigure"
0093 #define XtNlineWidth "lineWidth"
0094 #define XtNtreeGC "treeGC"
0095 #define XtNtreeParent "treeParent"
0096 #define XtNgravity "gravity"
0097 
0098                                         /* new class field names */
0099 #define XtCAutoReconfigure "AutoReconfigure"
0100 #define XtCLineWidth "LineWidth"
0101 #define XtCTreeGC "TreeGC"
0102 #define XtCTreeParent "TreeParent"
0103 #define XtCGravity "Gravity"
0104 
0105 #define XtRGC "GC"
0106 
0107 #ifndef OLDXAW
0108 #ifndef XawNdisplayList
0109 #define XawNdisplayList "displayList"
0110 #endif
0111 
0112 #ifndef XawCDisplayList
0113 #define XawCDisplayList "DisplayList"
0114 #endif
0115 
0116 #ifndef XawRDisplayList
0117 #define XawRDisplayList "XawDisplayList"
0118 #endif
0119 #endif
0120                                         /* external declarations */
0121 extern WidgetClass treeWidgetClass;
0122 
0123 typedef struct _TreeClassRec *TreeWidgetClass;
0124 typedef struct _TreeRec      *TreeWidget;
0125 
0126 _XFUNCPROTOBEGIN
0127 
0128 void XawTreeForceLayout
0129 (
0130  Widget     tree
0131  );
0132 
0133 _XFUNCPROTOEND
0134 
0135 #endif /* _XawTree_h */