00001 /* 00002 * $XConsortium: Tree.h,v 1.13 94/04/17 20:13:22 kaleb Exp $ 00003 * 00004 00005 Copyright (c) 1990, 1994 X Consortium 00006 00007 Permission is hereby granted, free of charge, to any person obtaining a copy 00008 of this software and associated documentation files (the "Software"), to deal 00009 in the Software without restriction, including without limitation the rights 00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00011 copies of the Software, and to permit persons to whom the Software is 00012 furnished to do so, subject to the following conditions: 00013 00014 The above copyright notice and this permission notice shall be included in 00015 all copies or substantial portions of the Software. 00016 00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 00024 Except as contained in this notice, the name of the X Consortium shall not be 00025 used in advertising or otherwise to promote the sale, use or other dealings 00026 in this Software without prior written authorization from the X Consortium. 00027 00028 * Copyright 1989 Prentice Hall 00029 * 00030 * Permission to use, copy, modify, and distribute this software for any 00031 * purpose and without fee is hereby granted, provided that the above 00032 * copyright notice appear in all copies and that both the copyright notice 00033 * and this permission notice appear in supporting documentation. 00034 * 00035 * Prentice Hall and the authors disclaim all warranties with regard 00036 * to this software, including all implied warranties of merchantability and 00037 * fitness. In no event shall Prentice Hall or the authors be liable 00038 * for any special, indirect or cosequential damages or any damages whatsoever 00039 * resulting from loss of use, data or profits, whether in an action of 00040 * contract, negligence or other tortious action, arising out of or in 00041 * connection with the use or performance of this software. 00042 * 00043 * Authors: Jim Fulton, MIT X Consortium, 00044 * based on a version by Douglas Young, Prentice Hall 00045 * 00046 * This widget is based on the Tree widget described on pages 397-419 of 00047 * Douglas Young's book "The X Window System, Programming and Applications 00048 * with Xt OSF/Motif Edition." The layout code has been rewritten to use 00049 * additional blank space to make the structure of the graph easier to see 00050 * as well as to support vertical trees. 00051 */ 00052 00053 00054 #ifndef _XawTree_h 00055 #define _XawTree_h 00056 00057 #include <X11/Xmu/Converters.h> 00058 00059 /****************************************************************************** 00060 * 00061 * Tree Widget (subclass of ConstraintClass) 00062 * 00063 ****************************************************************************** 00064 * 00065 * Parameters: 00066 * 00067 * Name Class Type Default 00068 * ---- ----- ---- ------- 00069 * 00070 * autoReconfigure AutoReconfigure Boolean FALSE 00071 * background Background Pixel XtDefaultBackground 00072 * foreground Foreground Pixel XtDefaultForeground 00073 * gravity Gravity XtGravity West 00074 * hSpace HSpace Dimension 20 00075 * lineWidth LineWidth Dimension 0 00076 * vSpace VSpace Dimension 6 00077 * 00078 * 00079 * Constraint Resources attached to children: 00080 * 00081 * treeGC TreeGC GC NULL 00082 * treeParent TreeParent Widget NULL 00083 * 00084 * 00085 *****************************************************************************/ 00086 00087 /* new instance field names */ 00088 #ifndef _XtStringDefs_h_ 00089 #define XtNhSpace "hSpace" 00090 #define XtNvSpace "vSpace" 00091 #define XtCHSpace "HSpace" 00092 #define XtCVSpace "VSpace" 00093 #endif 00094 00095 #define XtNautoReconfigure "autoReconfigure" 00096 #define XtNlineWidth "lineWidth" 00097 #define XtNtreeGC "treeGC" 00098 #define XtNtreeParent "treeParent" 00099 #define XtNgravity "gravity" 00100 00101 /* new class field names */ 00102 #define XtCAutoReconfigure "AutoReconfigure" 00103 #define XtCLineWidth "LineWidth" 00104 #define XtCTreeGC "TreeGC" 00105 #define XtCTreeParent "TreeParent" 00106 #define XtCGravity "Gravity" 00107 00108 #define XtRGC "GC" 00109 /* external declarations */ 00110 extern WidgetClass treeWidgetClass; 00111 00112 typedef struct _TreeClassRec *TreeWidgetClass; 00113 typedef struct _TreeRec *TreeWidget; 00114 00115 _XFUNCPROTOBEGIN 00116 00117 extern void XawTreeForceLayout ( 00118 #if NeedFunctionPrototypes 00119 Widget /* tree */ 00120 #endif 00121 ); 00122 00123 _XFUNCPROTOEND 00124 00125 #endif /* _XawTree_h */
1.5.1