![]() |
|
|||
File indexing completed on 2025-03-13 09:29:44
0001 /*********************************************************** 0002 0003 Copyright 1987, 1988, 1998 The Open Group 0004 0005 Permission to use, copy, modify, distribute, and sell this software and its 0006 documentation for any purpose is hereby granted without fee, provided that 0007 the above copyright notice appear in all copies and that both that 0008 copyright notice and this permission notice appear in supporting 0009 documentation. 0010 0011 The above copyright notice and this permission notice shall be included in 0012 all copies or substantial portions of the Software. 0013 0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0020 0021 Except as contained in this notice, the name of The Open Group shall not be 0022 used in advertising or otherwise to promote the sale, use or other dealings 0023 in this Software without prior written authorization from The Open Group. 0024 0025 0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 0027 0028 All Rights Reserved 0029 0030 Permission to use, copy, modify, and distribute this software and its 0031 documentation for any purpose and without fee is hereby granted, 0032 provided that the above copyright notice appear in all copies and that 0033 both that copyright notice and this permission notice appear in 0034 supporting documentation, and that the name of Digital not be 0035 used in advertising or publicity pertaining to distribution of the 0036 software without specific, written prior permission. 0037 0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 0044 SOFTWARE. 0045 0046 ******************************************************************/ 0047 0048 /* 0049 * Updated and significantly modified from the Athena VPaned Widget. 0050 * 0051 * Date: March 1, 1989 0052 * 0053 * By: Chris D. Peterson 0054 * MIT X Consortium 0055 * kit@expo.lcs.mit.edu 0056 */ 0057 0058 #ifndef _XawPanedP_h 0059 #define _XawPanedP_h 0060 0061 #include <X11/Xaw/Paned.h> 0062 0063 /* New fields for the Paned widget class record */ 0064 typedef struct _PanedClassPart { 0065 XtPointer extension; 0066 } PanedClassPart; 0067 0068 /* Full Class record declaration */ 0069 typedef struct _PanedClassRec { 0070 CoreClassPart core_class; 0071 CompositeClassPart composite_class; 0072 ConstraintClassPart constraint_class; 0073 PanedClassPart paned_class; 0074 } PanedClassRec; 0075 0076 extern PanedClassRec panedClassRec; 0077 0078 /* Paned constraint record */ 0079 typedef struct _PanedConstraintsPart { 0080 /* Resources */ 0081 Dimension min; /* Minimum height */ 0082 Dimension max; /* Maximum height */ 0083 Boolean allow_resize; /* True if child resize requests are ok */ 0084 Boolean show_grip; /* True if child will have grip below it, 0085 when it is not the bottom pane */ 0086 Boolean skip_adjust; /* True if child's height should not be 0087 changed without explicit user action */ 0088 int position; /* position location in Paned (relative to 0089 other children) ** NIY ** */ 0090 Dimension preferred_size; /* The Preferred size of the pane. 0091 If this is zero then ask child for size*/ 0092 Boolean resize_to_pref; /* resize this pane to its preferred size 0093 on a resize or change managed after 0094 realize */ 0095 0096 /* Private state */ 0097 Position delta; /* Desired Location */ 0098 Position olddelta; /* The last value of dy */ 0099 Boolean paned_adjusted_me; /* Has the vpaned adjusted this widget w/o 0100 user interaction to make things fit? */ 0101 Dimension wp_size; /* widget's preferred size */ 0102 int size; /* the size the widget will actually get */ 0103 Widget grip; /* The grip for this child */ 0104 } PanedConstraintsPart, *Pane; 0105 0106 typedef struct _PanedConstraintsRec { 0107 PanedConstraintsPart paned; 0108 } PanedConstraintsRec, *PanedConstraints; 0109 0110 /* 0111 * The Pane Stack Structure 0112 */ 0113 typedef struct _PaneStack { 0114 struct _PaneStack *next; /* The next element on the stack */ 0115 Pane pane; /* The pane in this element on the stack */ 0116 int start_size; /* The size of this element when it 0117 was pushed onto the stack */ 0118 } PaneStack; 0119 0120 /* New Fields for the Paned widget record */ 0121 typedef struct { 0122 /* resources */ 0123 Position grip_indent; /* Location of grips (offset 0124 from right margin) */ 0125 Boolean refiguremode; /* Whether to refigure changes 0126 right now */ 0127 XtTranslations grip_translations; /* grip translation table */ 0128 Pixel internal_bp; /* color of internal borders */ 0129 Dimension internal_bw; /* internal border width */ 0130 XtOrientation orientation; /* Orientation of paned widget */ 0131 0132 Cursor cursor; /* Cursor for paned window */ 0133 Cursor grip_cursor; /* inactive grip cursor */ 0134 Cursor v_grip_cursor; /* inactive vert grip cursor */ 0135 Cursor h_grip_cursor; /* inactive horiz grip cursor */ 0136 Cursor adjust_this_cursor; /* active grip cursor: T */ 0137 Cursor v_adjust_this_cursor; /* active vert grip cursor: T */ 0138 Cursor h_adjust_this_cursor; /* active horiz grip cursor: T */ 0139 0140 /* vertical */ 0141 Cursor adjust_upper_cursor; /* active grip cursor: U */ 0142 Cursor adjust_lower_cursor; /* active grip cursor: D */ 0143 0144 /* horizontal */ 0145 Cursor adjust_left_cursor; /* active grip cursor: U */ 0146 Cursor adjust_right_cursor; /* active grip cursor: D */ 0147 0148 /* private */ 0149 Boolean recursively_called; /* for ChangeManaged */ 0150 Boolean resize_children_to_pref; /* override constrain resources 0151 and resize all children to 0152 preferred size */ 0153 int start_loc; /* mouse origin when adjusting */ 0154 Widget whichadd; /* Which pane to add changes to */ 0155 Widget whichsub; /* Which pane to sub changes from */ 0156 GC normgc; /* GC to use when drawing borders */ 0157 GC invgc; /* GC to use when erasing borders */ 0158 GC flipgc; /* GC to use when animating borders */ 0159 int num_panes; /* count of managed panes */ 0160 PaneStack *stack; /* The pane stack for this widget */ 0161 #ifndef OLDXAW 0162 XtPointer pad[4]; /* for future use and keep binary compatibility */ 0163 #endif 0164 } PanedPart; 0165 0166 /* 0167 * Full instance record declaration 0168 */ 0169 typedef struct _PanedRec { 0170 CorePart core; 0171 CompositePart composite; 0172 ConstraintPart constraint; 0173 PanedPart paned; 0174 } PanedRec; 0175 0176 #endif /* _XawPanedP_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |