1 /* $XConsortium: Form.h,v 1.22 89/07/21 01:51:26 kit Exp $ */
4 /***********************************************************
5 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
6 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 Permission to use, copy, modify, and distribute this software and its
11 documentation for any purpose and without fee is hereby granted,
12 provided that the above copyright notice appear in all copies and that
13 both that copyright notice and this permission notice appear in
14 supporting documentation, and that the names of Digital or MIT not be
15 used in advertising or publicity pertaining to distribution of the
16 software without specific, written prior permission.
18 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
19 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
20 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
21 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
23 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 ******************************************************************/
31 #include <X11/Constraint.h>
33 /***********************************************************************
37 ***********************************************************************/
41 Name Class RepType Default Value
42 ---- ----- ------- -------------
43 background Background Pixel XtDefaultBackground
44 border BorderColor Pixel XtDefaultForeground
45 borderWidth BorderWidth Dimension 1
46 defaultDistance Thickness int 4
47 destroyCallback Callback Pointer NULL
48 height Height Dimension computed at realize
49 mappedWhenManaged MappedWhenManaged Boolean True
50 sensitive Sensitive Boolean True
51 width Width Dimension computed at realize
57 /* Constraint parameters:
59 Name Class RepType Default Value
60 ---- ----- ------- -------------
61 bottom Edge XtEdgeType XtRubber
62 fromHoriz Widget Widget (left edge of form)
63 fromVert Widget Widget (top of form)
64 horizDistance Thickness int defaultDistance
65 left Edge XtEdgeType XtRubber
66 resizable Boolean Boolean False
67 right Edge XtEdgeType XtRubber
68 top Edge XtEdgeType XtRubber
69 vertDistance Thickness int defaultDistance
75 #define XtNdefaultDistance "defaultDistance"
77 #define XtNbottom "bottom"
78 #define XtNleft "left"
79 #define XtNright "right"
80 #define XtNfromHoriz "fromHoriz"
81 #define XtNfromVert "fromVert"
82 #define XtNhorizDistance "horizDistance"
83 #define XtNvertDistance "vertDistance"
84 #define XtNresizable "resizable"
86 #define XtCEdge "Edge"
87 #define XtCWidget "Widget"
89 #define XtRWidget "Widget"
91 #ifndef _XawEdgeType_e
92 #define _XawEdgeType_e
94 XtChainTop
, /* Keep this edge a constant distance from
95 the top of the form */
96 XtChainBottom
, /* Keep this edge a constant distance from
97 the bottom of the form */
98 XtChainLeft
, /* Keep this edge a constant distance from
99 the left of the form */
100 XtChainRight
, /* Keep this edge a constant distance from
101 the right of the form */
102 XtRubber
/* Keep this edge a proportional distance
103 from the edges of the form*/
105 #endif /* _XawEdgeType_e */
107 typedef struct _FormClassRec
*FormWidgetClass
;
108 typedef struct _FormRec
*FormWidget
;
110 extern WidgetClass formWidgetClass
;
113 /*************************************************************
114 * For Compatibility only. */
116 #define XtFormDoLayout XawFormDoLayout
118 /*************************************************************/
121 extern void XawFormDoLayout(); /* widget, doit */
125 #endif /* _XawForm_h */