BoxP.h revision 7a84e134
1/*
2* $Xorg: BoxP.h,v 1.4 2001/02/09 02:03:43 xorgcvs Exp $
3*/
4
5
6/***********************************************************
7
8Copyright 1987, 1988, 1994, 1998  The Open Group
9
10Permission to use, copy, modify, distribute, and sell this software and its
11documentation for any purpose is hereby granted without fee, provided that
12the above copyright notice appear in all copies and that both that
13copyright notice and this permission notice appear in supporting
14documentation.
15
16The above copyright notice and this permission notice shall be included in
17all copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
22OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
26Except as contained in this notice, the name of The Open Group shall not be
27used in advertising or otherwise to promote the sale, use or other dealings
28in this Software without prior written authorization from The Open Group.
29
30
31Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
32
33                        All Rights Reserved
34
35Permission to use, copy, modify, and distribute this software and its
36documentation for any purpose and without fee is hereby granted,
37provided that the above copyright notice appear in all copies and that
38both that copyright notice and this permission notice appear in
39supporting documentation, and that the name of Digital not be
40used in advertising or publicity pertaining to distribution of the
41software without specific, written prior permission.
42
43DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
44ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
45DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
46ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
47WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
48ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
49SOFTWARE.
50
51******************************************************************/
52/* $XFree86: xc/lib/Xaw/BoxP.h,v 1.10 2001/01/17 19:42:25 dawes Exp $ */
53
54#ifndef _XawBoxP_h
55#define _XawBoxP_h
56
57/*
58 * Box Widget Private Data
59 */
60#include <X11/Xaw/Box.h>
61#include <X11/Xmu/Converters.h>
62#include <X11/Xaw/XawInit.h>
63
64/* New fields for the Box widget class record */
65typedef struct {
66    XtPointer extension;
67} BoxClassPart;
68
69/* Full class record declaration */
70typedef struct _BoxClassRec {
71    CoreClassPart	core_class;
72    CompositeClassPart  composite_class;
73    BoxClassPart	box_class;
74} BoxClassRec;
75
76extern BoxClassRec boxClassRec;
77
78/* New fields for the Box widget record */
79typedef struct {
80    /* resources */
81    Dimension h_space, v_space;
82    XtOrientation orientation;
83
84    /* private state */
85    Dimension preferred_width, preferred_height;
86    Dimension last_query_width, last_query_height;
87    XtGeometryMask last_query_mode;
88#ifndef OLDXAW
89    XawDisplayList *display_list;
90    XtPointer pad[4];	/* for future use and keep binary compatability */
91#endif
92} BoxPart;
93
94/*
95 * Full instance record declaration
96 */
97typedef struct _BoxRec {
98    CorePart	    core;
99    CompositePart   composite;
100    BoxPart 	    box;
101} BoxRec;
102
103#endif /* _XawBoxP_h */
104