ConstrainP.h revision 444c061a
1444c061aSmrg/* $Xorg: ConstrainP.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */
2444c061aSmrg/* $oHeader: ConstrainP.h,v 1.2 88/08/18 15:54:15 asente Exp $ */
3444c061aSmrg/***********************************************************
4444c061aSmrg
5444c061aSmrgCopyright 1987, 1988, 1998  The Open Group
6444c061aSmrg
7444c061aSmrgPermission to use, copy, modify, distribute, and sell this software and its
8444c061aSmrgdocumentation for any purpose is hereby granted without fee, provided that
9444c061aSmrgthe above copyright notice appear in all copies and that both that
10444c061aSmrgcopyright notice and this permission notice appear in supporting
11444c061aSmrgdocumentation.
12444c061aSmrg
13444c061aSmrgThe above copyright notice and this permission notice shall be included in
14444c061aSmrgall copies or substantial portions of the Software.
15444c061aSmrg
16444c061aSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17444c061aSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18444c061aSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
19444c061aSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20444c061aSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21444c061aSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22444c061aSmrg
23444c061aSmrgExcept as contained in this notice, the name of The Open Group shall not be
24444c061aSmrgused in advertising or otherwise to promote the sale, use or other dealings
25444c061aSmrgin this Software without prior written authorization from The Open Group.
26444c061aSmrg
27444c061aSmrg
28444c061aSmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
29444c061aSmrg
30444c061aSmrg                        All Rights Reserved
31444c061aSmrg
32444c061aSmrgPermission to use, copy, modify, and distribute this software and its
33444c061aSmrgdocumentation for any purpose and without fee is hereby granted,
34444c061aSmrgprovided that the above copyright notice appear in all copies and that
35444c061aSmrgboth that copyright notice and this permission notice appear in
36444c061aSmrgsupporting documentation, and that the name of Digital not be
37444c061aSmrgused in advertising or publicity pertaining to distribution of the
38444c061aSmrgsoftware without specific, written prior permission.
39444c061aSmrg
40444c061aSmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
41444c061aSmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
42444c061aSmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
43444c061aSmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
44444c061aSmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45444c061aSmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
46444c061aSmrgSOFTWARE.
47444c061aSmrg
48444c061aSmrg******************************************************************/
49444c061aSmrg
50444c061aSmrg#ifndef _XtConstraintP_h
51444c061aSmrg#define _XtConstraintP_h
52444c061aSmrg
53444c061aSmrg#include <X11/Constraint.h>
54444c061aSmrg
55444c061aSmrgtypedef struct _ConstraintPart {
56444c061aSmrg    XtPointer   mumble;		/* No new fields, keep C compiler happy */
57444c061aSmrg} ConstraintPart;
58444c061aSmrg
59444c061aSmrgtypedef struct _ConstraintRec {
60444c061aSmrg    CorePart	    core;
61444c061aSmrg    CompositePart   composite;
62444c061aSmrg    ConstraintPart  constraint;
63444c061aSmrg} ConstraintRec, *ConstraintWidget;
64444c061aSmrg
65444c061aSmrgtypedef struct _ConstraintClassPart {
66444c061aSmrg    XtResourceList resources;	      /* constraint resource list	     */
67444c061aSmrg    Cardinal   num_resources;         /* number of constraints in list       */
68444c061aSmrg    Cardinal   constraint_size;       /* size of constraint record           */
69444c061aSmrg    XtInitProc initialize;            /* constraint initialization           */
70444c061aSmrg    XtWidgetProc destroy;             /* constraint destroy proc             */
71444c061aSmrg    XtSetValuesFunc set_values;       /* constraint set_values proc          */
72444c061aSmrg    XtPointer	    extension;		/* pointer to extension record      */
73444c061aSmrg} ConstraintClassPart;
74444c061aSmrg
75444c061aSmrgtypedef struct {
76444c061aSmrg    XtPointer next_extension;	/* 1st 4 mandated for all extension records */
77444c061aSmrg    XrmQuark record_type;	/* NULLQUARK; on ConstraintClassPart */
78444c061aSmrg    long version;		/* must be XtConstraintExtensionVersion */
79444c061aSmrg    Cardinal record_size;	/* sizeof(ConstraintClassExtensionRec) */
80444c061aSmrg    XtArgsProc get_values_hook;
81444c061aSmrg} ConstraintClassExtensionRec, *ConstraintClassExtension;
82444c061aSmrg
83444c061aSmrgtypedef struct _ConstraintClassRec {
84444c061aSmrg    CoreClassPart       core_class;
85444c061aSmrg    CompositeClassPart  composite_class;
86444c061aSmrg    ConstraintClassPart constraint_class;
87444c061aSmrg} ConstraintClassRec;
88444c061aSmrg
89444c061aSmrgexternalref ConstraintClassRec constraintClassRec;
90444c061aSmrg
91444c061aSmrg#define XtConstraintExtensionVersion 1L
92444c061aSmrg
93444c061aSmrg#endif /* _XtConstraintP_h */
94444c061aSmrg/* DON'T ADD STUFF AFTER THIS #endif */
95