2 * $XConsortium: WRect.h /main/3 1996/06/11 16:58:33 cde-hal $
4 * Copyright (c) 1991 HaL Computer Systems, Inc. All rights reserved.
5 * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
6 * States. Use of a copyright notice is precautionary only and does not
7 * imply publication or disclosure.
9 * This software contains confidential information and trade secrets of HaL
10 * Computer Systems, Inc. Use, disclosure, or reproduction is prohibited
11 * without the prior express written permission of HaL Computer Systems, Inc.
13 * RESTRICTED RIGHTS LEGEND
14 * Use, duplication, or disclosure by the Government is subject to
15 * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
16 * Technical Data and Computer Software clause at DFARS 252.227-7013.
17 * HaL Computer Systems, Inc.
18 * 1315 Dell Avenue, Campbell, CA 95008
22 // This code is automatically generated in -*- C++ -*-
27 #include <X11/Object.h>
29 #include <X11/RectObj.h>
31 class WRect : public WObject {
33 DEFINE_INIT (WRect, WObject, rectObjClass)
34 DEFINE_POPUP_INIT (WRect, WObject, rectObjClass)
35 inline void Manage () const { XtManageChild (widget); }
36 inline void Unmanage () const { XtUnmanageChild (widget); }
37 inline Boolean IsManaged () const { return XtIsManaged (widget); }
39 inline void SetSensitive (Boolean o) const { XtSetSensitive (widget, o); }
40 while a bug exists in Motif
42 inline void SetSensitive (Boolean o, Boolean remanage = False) const
44 Boolean sensitive = IsSensitive();
46 // only if values differ
48 if ((sensitive && !o) ||
50 XtSetSensitive (widget, o);
59 inline Boolean IsSensitive () const { return XtIsSensitive (widget); }
60 DEFINE_GETTER_SETTER (AncestorSensitive,Boolean,"ancestorSensitive")
61 DEFINE_GETTER_SETTER (X,Position,"x")
62 DEFINE_GETTER_SETTER (Y,Position,"y")
63 DEFINE_GETTER_SETTER (Width,Dimension,"width")
64 DEFINE_GETTER_SETTER (Height,Dimension,"height")
65 DEFINE_GETTER_SETTER (BorderWidth,Dimension,"borderWidth")
66 DEFINE_GETTER_SETTER (Sensitive,Boolean,"sensitive")
69 #define NULLWRect WRect((Widget)0)