2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * $XConsortium: WConstraint.h /main/3 1996/06/11 16:58:11 cde-hal $
26 * Copyright (c) 1991 HaL Computer Systems, Inc. All rights reserved.
27 * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
28 * States. Use of a copyright notice is precautionary only and does not
29 * imply publication or disclosure.
31 * This software contains confidential information and trade secrets of HaL
32 * Computer Systems, Inc. Use, disclosure, or reproduction is prohibited
33 * without the prior express written permission of HaL Computer Systems, Inc.
35 * RESTRICTED RIGHTS LEGEND
36 * Use, duplication, or disclosure by the Government is subject to
37 * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
38 * Technical Data and Computer Software clause at DFARS 252.227-7013.
39 * HaL Computer Systems, Inc.
40 * 1315 Dell Avenue, Campbell, CA 95008
44 // This code is automatically generated in -*- c++ -*-
48 #include "WComposite.h"
49 #include <X11/Constraint.h>
51 class WConstraint : public WComposite {
53 DEFINE_INIT (WConstraint, WComposite, constraintWidgetClass)
56 #define NULLWConstraint WConstraint((Widget)0)
62 inline CConstraint (Widget w) { widget = w; }
63 inline CConstraint (WObject& w) { widget = Widget(w); }
64 inline operator Widget () const { return widget; }
65 inline Arg Get (Arg& a) const { XtGetValues (widget, &a, 1); return a; }
66 inline void Get (ArgList a, Cardinal c) const { XtGetValues (widget, a, c); }
67 inline Arg _Get (Arg& a) const { XtGetValues (widget, &a, 1); return a; }
68 inline Arg Set (Arg& a) const { XtSetValues (widget, &a, 1); return a; }
69 inline void Set (ArgList a, Cardinal c) const { XtSetValues (widget, a, c); }
70 inline Arg _Set (Arg& a) const { XtSetValues (widget, &a, 1); return a; }
71 inline void AddCallback (const char* name, XtCallbackProc proc, caddr_t closure = NULL) const
72 { XtAddCallback (widget, name, proc, closure); }
73 inline void RemoveCallback (const char* name, XtCallbackProc proc, caddr_t closure = NULL) const { XtRemoveCallback (widget, name, proc, closure); }
74 inline void AddCallbacks (const char* name, XtCallbackList callbacks) const
75 { XtAddCallbacks (widget, name, callbacks); }
76 inline void RemoveCallbacks (const char* name, XtCallbackList callbacks) const
77 { XtRemoveCallbacks (widget, name, callbacks); }
78 inline void RemoveAllCallbacks (const char* name) const
79 { XtRemoveAllCallbacks (widget, name); }
80 inline void CallCallbacks (const char* name, caddr_t call_data) const
81 { XtCallCallbacks (widget, name, call_data); }