2 * Copyright (c) 1996 Barton P. Miller
4 * We provide the Paradyn Parallel Performance Tools (below
5 * described as Paradyn") on an AS IS basis, and do not warrant its
6 * validity or performance. We reserve the right to update, modify,
7 * or discontinue this software at any time. We shall have no
8 * obligation to supply such updates or modifications or any other
9 * form of support to you.
11 * This license is for research uses. For such uses, there is no
12 * charge. We define "research use" to mean you may freely use it
13 * inside your organization for whatever purposes you see fit. But you
14 * may not re-distribute Paradyn or parts of Paradyn, in any form
15 * source or binary (including derivatives), electronic or otherwise,
16 * to any other organization or entity without our permission.
18 * (for other uses, please contact us at paradyn@cs.wisc.edu)
20 * All warranties, including without limitation, any warranty of
21 * merchantability or fitness for a particular purpose, are hereby
24 * By your use of Paradyn, you understand and agree that we (or any
25 * other person or entity with proprietary rights in Paradyn) are
26 * under no obligation to provide either maintenance services,
27 * update services, notices of latent defects, or correction of
28 * defects for Paradyn.
30 * Even if advised of the possibility of such damages, under no
31 * circumstances shall we (or any other person or entity with
32 * proprietary rights in the software licensed hereunder) be liable
33 * to you or any third party for direct, indirect, or consequential
34 * damages of any character regardless of type of action, including,
35 * without limitation, loss of profits, loss of use, loss of good
36 * will, or computer failure or malfunction. You agree to indemnify
37 * us (and any other person or entity with proprietary rights in the
38 * software licensed hereunder) for any and all liability it may
39 * incur to third parties resulting from your use of Paradyn.
42 // where4treeConstants.h
45 /* $Log: where4treeConstants.h,v $
46 /* Revision 1.5 1997/09/24 19:25:45 tamches
47 /* XFontStruct --> Tk_Font
49 * Revision 1.4 1996/08/16 21:07:42 tamches
50 * updated copyright for release 1.1
52 * Revision 1.3 1996/04/01 22:33:34 tamches
53 * Added X visibility event features
55 * Revision 1.2 1995/10/17 22:16:26 tamches
56 * Removed masterWindow. Removed rootItemTextGC, rootItemRectGC,
57 * and their highlighted variants. Removed listboxScrollbarBorderDragging.
58 * Removed several listbox gc's.
60 * Revision 1.1 1995/07/17 04:59:05 tamches
61 * First version of the new where axis
65 #ifndef _WHERE4TREECONSTANTS_H_
66 #define _WHERE4TREECONSTANTS_H_
73 struct where4TreeConstants {
75 Tk_Window theTkWindow;
76 Pixmap offscreenPixmap;
82 Tk_Font rootTextFontStruct;
83 Tk_3DBorder rootNodeBorder;
91 int listboxBorderPix; // 3
92 int listboxScrollBarWidth; // 16
93 int listboxHeightWhereSBappears;
94 // varies as the window gets resize -- let's say for now that it's
95 // always something like 80% of the height of the master canvas window.
96 Tk_Font listboxFontStruct;
97 Tk_3DBorder listboxBorder;
98 Tk_3DBorder listboxScrollbarBorderNormal;
99 GC listboxTextGC, listboxTriangleGC;
100 int listboxHorizPadBeforeText, listboxHorizPadBeforeTriangle;
101 int listboxTriangleWidth, listboxTriangleHeight;
102 int listboxHorizPadAfterTriangle;
103 int listboxVertPadAboveItem, listboxVertPadAfterItemBaseline;
104 GC listboxCopyAreaGC;
106 // Other Spacing issues:
107 int horizPixBetweenChildren;
108 int vertPixParent2ChildTop; // about 8 pixels
109 int horizPixlistbox2FirstExpandedChild; // between
111 // Some XColors allocated with Tk_GetColor() [deallocate w/ Tk_FreeColor()]:
112 XColor *grayColor, *pinkColor, *blackColor, *cornflowerBlueColor;
115 // true iff the window is partially or fully obscured.
117 where4TreeConstants(Tcl_Interp *, Tk_Window theWindow);
118 ~where4TreeConstants(); // needed to free some resources
122 void makeVisibilityUnobscured() {obscured = false;}
123 void makeVisibilityPartiallyObscured() {obscured = true;}
124 void makeVisibilityFullyObscured() {obscured = true;}