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: WXmManager.h /main/3 1996/06/11 17:00:56 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 "WConstraint.h"
51 class WXmManager : public WConstraint {
53 DEFINE_INIT (WXmManager, WConstraint, xmManagerWidgetClass)
54 DEFINE_GETTER_SETTER (Foreground,Pixel,"foreground")
55 DEFINE_GETTER_SETTER (Background,Pixel,"background")
56 DEFINE_GETTER_SETTER (BackgroundPixmap,Pixmap,"backgroundPixmap")
57 DEFINE_GETTER_SETTER (BorderWidth,Dimension,"borderWidth")
58 DEFINE_GETTER_SETTER (HighlightColor,Pixel,"highlightColor")
59 DEFINE_GETTER_SETTER (HighlightPixmap,Pixmap,"highlightPixmap")
60 DEFINE_GETTER_SETTER (InitialFocus,Widget,"initialFocus")
61 DEFINE_GETTER_SETTER (UnitType,unsigned char,"unitType")
62 DEFINE_GETTER_SETTER (ShadowThickness,short,"shadowThickness")
63 DEFINE_GETTER_SETTER (TopShadowColor,Pixel,"topShadowColor")
64 DEFINE_GETTER_SETTER (TopShadowPixmap,Pixmap,"topShadowPixmap")
65 DEFINE_GETTER_SETTER (BottomShadowColor,Pixel,"bottomShadowColor")
66 DEFINE_GETTER_SETTER (BottomShadowPixmap,Pixmap,"bottomShadowPixmap")
67 DEFINE_CALLBACK (HelpCallback,"helpCallback")
68 DEFINE_GETTER_SETTER (UserData,void*,"userData")
70 // Constraint Resources -- Valid only in a form
72 DEFINE_GETTER_SETTER (TopAttachment,unsigned char,"topAttachment")
73 DEFINE_GETTER_SETTER (BottomAttachment,unsigned char,"bottomAttachment")
74 DEFINE_GETTER_SETTER (LeftAttachment,unsigned char,"leftAttachment")
75 DEFINE_GETTER_SETTER (RightAttachment,unsigned char,"rightAttachment")
76 DEFINE_GETTER_SETTER (TopWidget,Widget,"topWidget")
77 DEFINE_GETTER_SETTER (BottomWidget,Widget,"bottomWidget")
78 DEFINE_GETTER_SETTER (LeftWidget,Widget,"leftWidget")
79 DEFINE_GETTER_SETTER (RightWidget,Widget,"rightWidget")
80 DEFINE_GETTER_SETTER (TopPosition,int,"topPosition")
81 DEFINE_GETTER_SETTER (BottomPosition,int,"bottomPosition")
82 DEFINE_GETTER_SETTER (LeftPosition,int,"leftPosition")
83 DEFINE_GETTER_SETTER (RightPosition,int,"rightPosition")
84 DEFINE_GETTER_SETTER (TopOffset,int,"topOffset")
85 DEFINE_GETTER_SETTER (BottomOffset,int,"bottomOffset")
86 DEFINE_GETTER_SETTER (LeftOffset,int,"leftOffset")
87 DEFINE_GETTER_SETTER (RightOffset,int,"rightOffset")
88 DEFINE_GETTER_SETTER (Resizable,Boolean,"resizable")
91 // Constraint Resources -- Valid only in a frame
93 DEFINE_GETTER_SETTER (ChildType,unsigned char,"childType")
94 DEFINE_GETTER_SETTER (ChildHorizontalAlignment,unsigned char,"childHorizontalAlignment")
95 DEFINE_GETTER_SETTER (ChildHorizontalSpacing,Dimension,"childHorizontalSpacing")
96 DEFINE_GETTER_SETTER (ChildVerticalAlignment,unsigned char,"childVerticalAlignment")
99 // Constraint resources - valid only in a paned window
101 DEFINE_GETTER_SETTER (AllowResize, Boolean, "allowResize")
102 DEFINE_GETTER_SETTER (PaneMinimum, Dimension, "paneMinimum")
103 DEFINE_GETTER_SETTER (PaneMaximum, Dimension, "paneMaximum")
104 DEFINE_GETTER_SETTER (PositionIndex, short, "positionIndex")
105 DEFINE_GETTER_SETTER (SkipAdjust, Boolean, "skipAdjust")
107 inline void LeftAttachment( unsigned char to_what, Widget w ) {
108 Arg a; a.name = CASTRNAM "leftAttachment"; a.value = (XtArgVal)to_what; _Set(a);
109 a.name = CASTRNAM "leftWidget"; a.value = (XtArgVal)w; _Set(a);
112 inline void LeftAttachment( unsigned char to_what, Widget w, int offset ) {
113 Arg a; a.name = CASTRNAM "leftAttachment"; a.value = (XtArgVal)to_what; _Set(a);
114 a.name = CASTRNAM "leftOffset"; a.value = (XtArgVal)offset; _Set(a);
115 a.name = CASTRNAM "leftWidget"; a.value = (XtArgVal)w; _Set(a);
118 inline void LeftAttachment( unsigned char to_what, int poffset ) {
119 Arg a; a.name = CASTRNAM "leftAttachment"; a.value = (XtArgVal)to_what; _Set(a);
120 if( to_what == XmATTACH_POSITION ) {
121 a.name = CASTRNAM "leftPosition";
122 a.value = (XtArgVal)poffset; _Set(a);
124 a.name = CASTRNAM "leftOffset";
125 a.value = (XtArgVal)poffset; _Set(a);
129 inline void LeftAttachment( unsigned char to_what, int position,
131 Arg a; a.name = CASTRNAM "leftAttachment"; a.value = (XtArgVal)to_what; _Set(a);
132 a.name = CASTRNAM "leftPosition"; a.value = (XtArgVal)position; _Set(a);
133 a.name = CASTRNAM "leftOffset"; a.value = (XtArgVal)offset; _Set(a);
136 inline void RightAttachment( unsigned char to_what, Widget w ) {
137 Arg a; a.name = CASTRNAM "rightAttachment"; a.value = (XtArgVal)to_what; _Set(a);
138 a.name = CASTRNAM "rightWidget"; a.value = (XtArgVal)w; _Set(a);
141 inline void RightAttachment( unsigned char to_what, Widget w, int offset ) {
142 Arg a; a.name = CASTRNAM "rightAttachment"; a.value = (XtArgVal)to_what; _Set(a);
143 a.name = CASTRNAM "rightOffset"; a.value = (XtArgVal)offset; _Set(a);
144 a.name = CASTRNAM "rightWidget"; a.value = (XtArgVal)w; _Set(a);
147 inline void RightAttachment( unsigned char to_what, int poffset ) {
148 Arg a; a.name = CASTRNAM "rightAttachment"; a.value = (XtArgVal)to_what; _Set(a);
149 if( to_what == XmATTACH_POSITION ) {
150 a.name = CASTRNAM "rightPosition";
151 a.value = (XtArgVal)poffset; _Set(a);
153 a.name = CASTRNAM "rightOffset";
154 a.value = (XtArgVal)poffset; _Set(a);
158 inline void RightAttachment( unsigned char to_what, int position,
160 Arg a; a.name = CASTRNAM "rightAttachment"; a.value = (XtArgVal)to_what; _Set(a);
161 a.name = CASTRNAM "rightPosition"; a.value = (XtArgVal)position; _Set(a);
162 a.name = CASTRNAM "rightOffset"; a.value = (XtArgVal)offset; _Set(a);
165 inline void TopAttachment( unsigned char to_what, Widget w ) {
166 Arg a; a.name = CASTRNAM "topAttachment"; a.value = (XtArgVal)to_what; _Set(a);
167 a.name = CASTRNAM "topWidget"; a.value = (XtArgVal)w; _Set(a);
170 inline void TopAttachment( unsigned char to_what, Widget w, int offset ) {
171 Arg a; a.name = CASTRNAM "topAttachment"; a.value = (XtArgVal)to_what; _Set(a);
172 a.name = CASTRNAM "topOffset"; a.value = (XtArgVal)offset; _Set(a);
173 a.name = CASTRNAM "topWidget"; a.value = (XtArgVal)w; _Set(a);
176 inline void TopAttachment( unsigned char to_what, int poffset ) {
177 Arg a; a.name = CASTRNAM "topAttachment"; a.value = (XtArgVal)to_what; _Set(a);
178 if( to_what == XmATTACH_POSITION ) {
179 a.name = CASTRNAM "topPosition";
180 a.value = (XtArgVal)poffset; _Set(a);
182 a.name = CASTRNAM "topOffset";
183 a.value = (XtArgVal)poffset; _Set(a);
187 inline void TopAttachment( unsigned char to_what, int position,
189 Arg a; a.name = CASTRNAM "topAttachment"; a.value = (XtArgVal)to_what; _Set(a);
190 a.name = CASTRNAM "topPosition"; a.value = (XtArgVal)position; _Set(a);
191 a.name = CASTRNAM "topOffset"; a.value = (XtArgVal)offset; _Set(a);
194 inline void BottomAttachment( unsigned char to_what, Widget w ) {
195 Arg a; a.name = CASTRNAM "bottomAttachment"; a.value = (XtArgVal)to_what; _Set(a);
196 a.name = CASTRNAM "bottomWidget"; a.value = (XtArgVal)w; _Set(a);
199 inline void BottomAttachment( unsigned char to_what, Widget w, int offset ) {
200 Arg a; a.name = CASTRNAM "bottomAttachment"; a.value = (XtArgVal)to_what; _Set(a);
201 a.name = CASTRNAM "bottomOffset"; a.value = (XtArgVal)offset; _Set(a);
202 a.name = CASTRNAM "bottomWidget"; a.value = (XtArgVal)w; _Set(a);
205 inline void BottomAttachment( unsigned char to_what, int poffset ) {
206 Arg a; a.name = CASTRNAM "bottomAttachment"; a.value = (XtArgVal)to_what; _Set(a);
207 if( to_what == XmATTACH_POSITION ) {
208 a.name = CASTRNAM "bottomPosition";
209 a.value = (XtArgVal)poffset; _Set(a);
211 a.name = CASTRNAM "bottomOffset";
212 a.value = (XtArgVal)poffset; _Set(a);
216 inline void BottomAttachment( unsigned char to_what, int position,
218 Arg a; a.name = CASTRNAM "bottomAttachment"; a.value = (XtArgVal)to_what; _Set(a);
219 a.name = CASTRNAM "bottomPosition"; a.value = (XtArgVal)position; _Set(a);
220 a.name = CASTRNAM "bottomOffset"; a.value = (XtArgVal)offset; _Set(a);
226 #define NULLWXmManager WXmManager((Widget)0)
228 class CXmManager : public CConstraint {
230 DEFINE_CINIT(CXmManager, CConstraint, xmManagerWidgetClass)
233 #endif // WXmManager_h