2 |
7u83 |
1 |
/*
|
|
|
2 |
COPYRIGHT NOTICE
|
|
|
3 |
|
|
|
4 |
This program is the proprietary property of IXI Ltd, a subsidiary
|
|
|
5 |
of the Santa Cruz Operation (SCO). Use, reproduction, production
|
|
|
6 |
of amended versions and/or transfer of this program is permitted
|
|
|
7 |
PROVIDED THAT:
|
|
|
8 |
|
|
|
9 |
(a) This legend be preserved on any such reproduction and amended
|
|
|
10 |
version.
|
|
|
11 |
|
|
|
12 |
(b) Any recipient of such reproduction or amended version accept
|
|
|
13 |
the conditions set out in this legend.
|
|
|
14 |
|
|
|
15 |
IXI accepts no liability whatsoever in relation to any use to
|
|
|
16 |
which this program may be put and gives no warranty as to the
|
|
|
17 |
program's suitability for any purpose.
|
|
|
18 |
|
|
|
19 |
All rights reserved.
|
|
|
20 |
|
|
|
21 |
Copyright (c) 1995, 1996
|
|
|
22 |
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
/*
|
|
|
26 |
Copyright (c) 1995 Open Software Foundation, Inc.
|
|
|
27 |
|
|
|
28 |
All Rights Reserved
|
|
|
29 |
|
|
|
30 |
Permission to use, copy, modify, and distribute this software and its
|
|
|
31 |
documentation for any purpose and without fee is hereby granted, provided
|
|
|
32 |
that the above copyright notice appears in all copies and that both the
|
|
|
33 |
copyright notice and this permission notice appear in supporting
|
|
|
34 |
documentation.
|
|
|
35 |
|
|
|
36 |
OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
|
|
|
37 |
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
38 |
FOR A PARTICULAR PURPOSE.
|
|
|
39 |
|
|
|
40 |
IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
|
|
|
41 |
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
42 |
LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
|
|
|
43 |
NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
|
44 |
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
45 |
*/
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/* SCO CID (IXI) XmP.h,v 1.1 1996/08/08 14:14:03 wendland Exp */
|
|
|
49 |
/* TOG CID (osf_ri) XmP.h,v 1.1 1996/08/08 14:14:03 wendland Exp */
|
|
|
50 |
|
|
|
51 |
%%
|
|
|
52 |
#ifndef __MOTIF_P_HEADERS
|
|
|
53 |
#error Unexpected access to Motif P headers
|
|
|
54 |
#endif
|
|
|
55 |
%%
|
|
|
56 |
|
|
|
57 |
+USE "ansi", "stddef.h", "size_t" (!?) ;
|
|
|
58 |
+USE "motif/1_2", "Xm/Xm.h";
|
|
|
59 |
+USE "x5/lib", "X11/Xresource.h";
|
|
|
60 |
+USE "x5/t", "X11/IntrinsicP.h";
|
|
|
61 |
|
|
|
62 |
/*
|
|
|
63 |
* These appear to be functions that the Motif designers thought
|
|
|
64 |
* should have been in the Xt spec. Note that XmP redefines
|
|
|
65 |
* some Xt macros, but that changes the implementation, not
|
|
|
66 |
* the interface, so we don't need them here.
|
|
|
67 |
*/
|
|
|
68 |
|
|
|
69 |
# Oh yes we do! At least, if not done, we got the wrong
|
|
|
70 |
# semantics for these macros in xdt!
|
|
|
71 |
|
|
|
72 |
#
|
|
|
73 |
# Macros replacing toolkit macros so that gadgets are handled properly.
|
|
|
74 |
#
|
|
|
75 |
|
|
|
76 |
# osf_ri: commented out the following
|
|
|
77 |
#+FUNC String __Xm_XtName ( Widget ) ;
|
|
|
78 |
#+FUNC Display *__Xm_XtDisplay ( Widget ) ;
|
|
|
79 |
#+FUNC Screen *__Xm_XtScreen ( Widget ) ;
|
|
|
80 |
#+FUNC Window __Xm_XtWindow ( Widget ) ;
|
|
|
81 |
#+FUNC WidgetClass __Xm_XtClass ( Widget ) ;
|
|
|
82 |
#+FUNC WidgetClass __Xm_XtSuperclass ( Widget ) ;
|
|
|
83 |
#+FUNC Boolean __Xm_XtIsRealized ( Widget ) ;
|
|
|
84 |
#+FUNC Boolean __Xm_XtIsManaged ( Widget ) ;
|
|
|
85 |
#+FUNC Boolean __Xm_XtIsSensitive(Widget);
|
|
|
86 |
#+FUNC Widget __Xm_XtParent ( Widget ) ;
|
|
|
87 |
|
|
|
88 |
%%
|
|
|
89 |
/** osf_ri: forget the following:
|
|
|
90 |
#undef XtName
|
|
|
91 |
#define XtName(widget) __Xm_XtName(widget)
|
|
|
92 |
** osf_ri */
|
|
|
93 |
|
|
|
94 |
#undef XtDisplay
|
|
|
95 |
|
|
|
96 |
/** osf_ri: forget the following:
|
|
|
97 |
#define XtDisplay(widget) __Xm_XtDisplay(widget)
|
|
|
98 |
#undef XtScreen
|
|
|
99 |
#define XtScreen(widget) __Xm_XtScreen(widget)
|
|
|
100 |
#undef XtWindow
|
|
|
101 |
#define XtWindow(widget) __Xm_XtWindow(widget)
|
|
|
102 |
#undef XtClass
|
|
|
103 |
#define XtClass(widget) __Xm_XtClass(widget)
|
|
|
104 |
#undef XtSuperclass
|
|
|
105 |
#define XtSuperclass(widget) __Xm_XtSuperclass(widget)
|
|
|
106 |
#undef XtIsRealized
|
|
|
107 |
#define XtIsRealized(widget) __Xm_XtIsRealized(widget)
|
|
|
108 |
#undef XtIsManaged
|
|
|
109 |
#define XtIsManaged(widget) __Xm_XtIsManaged(widget)
|
|
|
110 |
#undef XtIsSensitive
|
|
|
111 |
#define XtIsSensitive(widget) __Xm_XtIsSensitive(widget)
|
|
|
112 |
#undef XtParent
|
|
|
113 |
#define XtParent(widget) __Xm_XtParent(widget)
|
|
|
114 |
** osf_ri */
|
|
|
115 |
%%
|
|
|
116 |
|
|
|
117 |
+FUNC Dimension XtX(Widget);
|
|
|
118 |
+FUNC Dimension XtY(Widget);
|
|
|
119 |
+FUNC Dimension XtWidth(Widget);
|
|
|
120 |
+FUNC Dimension XtHeight(Widget);
|
|
|
121 |
+FUNC Dimension XtBorderWidth(Widget);
|
|
|
122 |
+FUNC Pixel XtBackground(Widget);
|
|
|
123 |
+FUNC Boolean XtSensitive(Widget);
|
|
|
124 |
|
|
|
125 |
+TYPEDEF unsigned long Mask;
|
|
|
126 |
|
|
|
127 |
+FIELD (struct) XrmResource := {
|
|
|
128 |
XrmQuark xrm_name;
|
|
|
129 |
XrmQuark xrm_class;
|
|
|
130 |
XrmQuark xrm_type;
|
|
|
131 |
Cardinal xrm_size;
|
|
|
132 |
long int xrm_offset;
|
|
|
133 |
XrmQuark xrm_default_type;
|
|
|
134 |
XtPointer xrm_default_addr;
|
|
|
135 |
};
|
|
|
136 |
+TYPEDEF XrmResource *XrmResourceList;
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
/*
|
|
|
140 |
* XtCoreProc is a bit difficult ... left out for now.
|
|
|
141 |
*/
|
|
|
142 |
|
|
|
143 |
+CONST int XmMENU_POPDOWN;
|
|
|
144 |
+CONST int XmMENU_PROCESS_TREE;
|
|
|
145 |
+CONST int XmMENU_TRAVERSAL;
|
|
|
146 |
+CONST int XmMENU_SHELL_POPDOWN;
|
|
|
147 |
+CONST int XmMENU_CALLBACK;
|
|
|
148 |
+CONST int XmMENU_BUTTON;
|
|
|
149 |
+CONST int XmMENU_CASCADING;
|
|
|
150 |
+CONST int XmMENU_SUBMENU;
|
|
|
151 |
+CONST int XmMENU_ARM;
|
|
|
152 |
+CONST int XmMENU_DISARM;
|
|
|
153 |
+CONST int XmMENU_BAR_CLEANUP;
|
|
|
154 |
+CONST int XmMENU_STATUS;
|
|
|
155 |
+CONST int XmMENU_MEMWIDGET_UPDATE;
|
|
|
156 |
+CONST int XmMENU_BUTTON_POPDOWN;
|
|
|
157 |
+CONST int XmMENU_RESTORE_EXCLUDED_TEAROFF_TO_TOPLEVEL_SHELL;
|
|
|
158 |
+CONST int XmMENU_RESTORE_TEAROFF_TO_TOPLEVEL_SHELL;
|
|
|
159 |
+CONST int XmMENU_RESTORE_TEAROFF_TO_MENUSHELL;
|
|
|
160 |
+CONST int XmMENU_GET_LAST_SELECT_TOPLEVEL;
|
|
|
161 |
+CONST int XmMENU_TEAR_OFF_ARM;
|
|
|
162 |
|
|
|
163 |
+CONST int XmMENU_TORN_BIT;
|
|
|
164 |
+CONST int XmMENU_TEAR_OFF_SHELL_DESCENDANT_BIT;
|
|
|
165 |
+CONST int XmMENU_POPUP_POSTED_BIT;
|
|
|
166 |
|
|
|
167 |
+FUNC Boolean XmIsTorn(int);
|
|
|
168 |
+FUNC Boolean XmIsTearOffShellDescendant(int);
|
|
|
169 |
+FUNC Boolean XmPopupPosted(int);
|
|
|
170 |
|
|
|
171 |
+TYPEDEF void (*XmMenuProc)(int, Widget, ...);
|
|
|
172 |
|
|
|
173 |
+FIELD (struct) XmSimpleMenuRec := {
|
|
|
174 |
int count;
|
|
|
175 |
int post_from_button;
|
|
|
176 |
XtCallbackProc callback;
|
|
|
177 |
XmStringTable label_string;
|
|
|
178 |
String *accelerator;
|
|
|
179 |
XmStringTable accelerator_text;
|
|
|
180 |
XmKeySymTable mnemonic;
|
|
|
181 |
XmStringCharSetTable mnemonic_charset;
|
|
|
182 |
XmButtonTypeTable button_type;
|
|
|
183 |
int button_set;
|
|
|
184 |
XmString option_label;
|
|
|
185 |
KeySym option_mnemonic;
|
|
|
186 |
};
|
|
|
187 |
|
|
|
188 |
+TYPEDEF XmSimpleMenuRec* XmSimpleMenu;
|
|
|
189 |
|
|
|
190 |
+CONST int XmIGNORE_EVENTTYPE;
|
|
|
191 |
+CONST int XmDEFAULT_INDICATOR_DIM;
|
|
|
192 |
|
|
|
193 |
+CONST int Xm3D_ENHANCE_PIXEL;
|
|
|
194 |
+CONST int XmDEFAULT_TOP_MARGIN;
|
|
|
195 |
+CONST int XmDEFAULT_BOTTOM_MARGIN;
|
|
|
196 |
|
|
|
197 |
+ENUM XmImportOperator := {XmSYNTHETIC_NONE, XmSYNTHETIC_LOAD};
|
|
|
198 |
|
|
|
199 |
+TYPEDEF void (*XmExportProc)( Widget, int, XtArgVal *);
|
|
|
200 |
+TYPEDEF XmImportOperator (*XmImportProc)( Widget, int, XtArgVal *) ;
|
|
|
201 |
|
|
|
202 |
+FIELD ( struct ) XmSyntheticResource := {
|
|
|
203 |
String resource_name;
|
|
|
204 |
Cardinal resource_size;
|
|
|
205 |
Cardinal resource_offset;
|
|
|
206 |
XmExportProc export_proc;
|
|
|
207 |
XmImportProc import_proc;
|
|
|
208 |
};
|
|
|
209 |
|
|
|
210 |
+TYPE XmParentProcessData;
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
+CONST int XmPARENT_PROCESS_ANY;
|
|
|
214 |
+CONST int XmINPUT_ACTION;
|
|
|
215 |
+CONST int XmPARENT_ACTIVATE;
|
|
|
216 |
+CONST int XmPARENT_CANCEL;
|
|
|
217 |
|
|
|
218 |
%%
|
|
|
219 |
#define XmRETURN XmPARENT_ACTIVATE
|
|
|
220 |
#define XmCANCEL XmPARENT_CANCEL
|
|
|
221 |
%%
|
|
|
222 |
|
|
|
223 |
+CONST int XmINVALID_DIMENSION;
|
|
|
224 |
|
|
|
225 |
+CONST int XmBASELINE_GET;
|
|
|
226 |
+CONST int XmBASELINE_SET;
|
|
|
227 |
|
|
|
228 |
+FIELD (struct) XmBaselineMargins := {
|
|
|
229 |
unsigned char get_or_set;
|
|
|
230 |
Dimension margin_top;
|
|
|
231 |
Dimension margin_bottom;
|
|
|
232 |
Dimension shadow;
|
|
|
233 |
Dimension highlight;
|
|
|
234 |
Dimension text_height;
|
|
|
235 |
Dimension margin_height;
|
|
|
236 |
};
|
|
|
237 |
|
|
|
238 |
+ENUM XmFocusChange := {XmFOCUS_IN, XmFOCUS_OUT, XmENTER, XmLEAVE};
|
|
|
239 |
|
|
|
240 |
+ENUM XmNavigability := {
|
|
|
241 |
XmNOT_NAVIGABLE, XmCONTROL_NAVIGABLE,
|
|
|
242 |
XmTAB_NAVIGABLE, XmDESCENDANTS_NAVIGABLE,
|
|
|
243 |
XmDESCENDANTS_TAB_NAVIGABLE
|
|
|
244 |
};
|
|
|
245 |
|
|
|
246 |
/* In 1.2.5 this is in Traversal.h */
|
|
|
247 |
|
|
|
248 |
/*
|
|
|
249 |
CDE 1.2.3 uses member names old_focus and new_focus, whereas
|
|
|
250 |
OSF 1.2.5 uses old and new
|
|
|
251 |
*/
|
|
|
252 |
+FIELD (struct) _XmFocusMovedCallbackStruct {
|
|
|
253 |
|
|
|
254 |
int reason;
|
|
|
255 |
XEvent *event;
|
|
|
256 |
Boolean cont;
|
|
|
257 |
Widget old_focus;
|
|
|
258 |
Widget new_focus;
|
|
|
259 |
unsigned char focus_policy;
|
|
|
260 |
};
|
|
|
261 |
|
|
|
262 |
+TYPEDEF _XmFocusMovedCallbackStruct XmFocusMovedCallbackStruct;
|
|
|
263 |
+TYPEDEF _XmFocusMovedCallbackStruct *XmFocusMovedCallback;
|
|
|
264 |
|
|
|
265 |
+TYPE (struct) _XmFocusDataRec;
|
|
|
266 |
+TYPEDEF _XmFocusDataRec *XmFocusData;
|
|
|
267 |
|
|
|
268 |
+FUNC XmFocusData _XmCreateFocusData (void);
|
|
|
269 |
+FUNC void _XmDestroyFocusData (XmFocusData focusData);
|
|
|
270 |
+FUNC void _XmSetActiveTabGroup (XmFocusData focusData, Widget tabGroup);
|
|
|
271 |
+FUNC Widget _XmGetActiveItem (Widget w);
|
|
|
272 |
+FUNC void _XmNavigInitialize (Widget request, Widget new, ArgList args, Cardinal *num_args);
|
|
|
273 |
+FUNC Boolean _XmChangeNavigationType (Widget current, XmNavigationType newNavType);
|
|
|
274 |
+FUNC Boolean _XmNavigSetValues (Widget current, Widget request, Widget new, ArgList args, Cardinal *num_args);
|
|
|
275 |
+FUNC void _XmNavigResize (Widget w); /* in CDE 1.2.3 only */
|
|
|
276 |
+FUNC void _XmValidateFocus (Widget w); /* in CDE 1.2.3 only */
|
|
|
277 |
+FUNC void _XmNavigDestroy (Widget w);
|
|
|
278 |
+FUNC Boolean _XmCallFocusMoved (Widget old, Widget new, XEvent *event);
|
|
|
279 |
# +FUNC Boolean _XmMgrTraversal (Widget w, int direction);
|
|
|
280 |
+FUNC Boolean _XmMgrTraversal (Widget w, XmTraversalDirection direction);#osf_ri
|
|
|
281 |
+FUNC void _XmClearFocusPath (Widget w);
|
|
|
282 |
+FUNC Boolean _XmFocusIsHere (Widget w);
|
|
|
283 |
+FUNC void _XmProcessTraversal (Widget w, int dir, Boolean check);
|
|
|
284 |
+FUNC unsigned char _XmGetFocusPolicy (Widget w);
|
|
|
285 |
+FUNC Widget _XmFindTopMostShell (Widget w);
|
|
|
286 |
+FUNC void _XmFocusModelChanged (Widget topmost_shell, XtPointer client_data, XtPointer call_data);
|
|
|
287 |
+FUNC Boolean _XmGrabTheFocus (Widget w, XEvent *event);
|
|
|
288 |
+FUNC XmFocusData _XmGetFocusData (Widget topmost_shell);
|
|
|
289 |
+FUNC Boolean _XmCreateVisibilityRect (Widget w, XRectangle *rectPtr);
|
|
|
290 |
+FUNC void _XmSetRect (XRectangle *rect, Widget w);
|
|
|
291 |
+FUNC int _XmIntersectRect (XRectangle *srcRectA, Widget widget, XRectangle *dstRect);
|
|
|
292 |
+FUNC int _XmEmptyRect (XRectangle *r);
|
|
|
293 |
+FUNC void _XmClearRect (XRectangle *r);
|
|
|
294 |
+FUNC Boolean _XmIsNavigable(Widget w); /* CDE 1.2.3 only */
|
|
|
295 |
+FUNC void _XmWidgetFocusChange(Widget w, XmFocusChange c); /* CDE 1.2.3 only */
|
|
|
296 |
+FUNC Widget _XmNavigate(Widget w, XmTraversalDirection d); /* CDE 1.2.3 only */
|
|
|
297 |
+FUNC Widget _XmFindNextTabGroup (Widget w);
|
|
|
298 |
+FUNC Widget _XmFindPrevTabGroup (Widget w);
|
|
|
299 |
+FUNC void _XmSetInitialOfTabGroup( Widget group, Widget focus); /* CDE 1.2.3 only */
|
|
|
300 |
+FUNC void _XmResetTravGraph( Widget w); /* CDE 1.2.3 only */
|
|
|
301 |
+FUNC Boolean _XmFocusIsInShell( Widget w); /* CDE 1.2.3 only */
|
|
|
302 |
+FUNC Boolean _XmShellIsExclusive( Widget w); /* CDE 1.2.3 only */
|
|
|
303 |
+FUNC Widget _XmGetFirstFocus( Widget w); /* CDE 1.2.3 only */
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
/* FUNC void _XmPrimitiveEnter (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
307 |
/* FUNC void _XmPrimitiveLeave (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
308 |
/* +FUNC void _XmPrimitiveUnmap (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
309 |
/* +FUNC void _XmPrimitiveFocusInInternal (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
310 |
/* +FUNC void _XmPrimitiveFocusOut (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
311 |
/* +FUNC void _XmPrimitiveFocusIn (Widget pw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
312 |
/* +FUNC void _XmManagerEnter (Widget mw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
313 |
/* +FUNC void _XmManagerFocusInInternal (Widget mw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
314 |
/* +FUNC void _XmManagerFocusIn (Widget mw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
315 |
/* +FUNC void _XmManagerFocusOut (Widget mw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
316 |
/* +FUNC void _XmManagerUnmap (Widget mw, XEvent *event, String *params, Cardinal *num_params); NOT in CDE 1.2.3 */
|
|
|
317 |
/* +FUNC void _XmClearKbdFocus (Widget tabGroup); NOT in CDE 1.2.3 */
|
|
|
318 |
/* +FUNC Boolean _XmFindTraversablePrim (Widget tabGroup); NOT in CDE 1.2.3 */
|
|
|
319 |
/* +FUNC Boolean _XmTestTraversability (Widget widget, XRectangle *visRect); NOT in CDE 1.2.3 */
|
|
|
320 |
/* +FUNC Boolean XmProcessTraversal (Widget w, int dir); NOT in CDE 1.2.3 */
|
|
|
321 |
/* +FUNC void _XmClearTabGroup (Widget w); NOT in CDE 1.2.3 */
|
|
|
322 |
/* +FUNC Widget _XmFindTabGroup (Widget w); NOT in CDE 1.2.3 */
|
|
|
323 |
/* +FUNC Widget _XmGetTabGroup (Widget w); NOT in CDE 1.2.3 */
|
|
|
324 |
/* +FUNC void XmAddTabGroup (Widget tabGroup); NOT in CDE 1.2.3 */
|
|
|
325 |
/* +FUNC void XmRemoveTabGroup (Widget w); NOT in CDE 1.2.3 */
|
|
|
326 |
/* +FUNC Boolean _XmGetManagedInfo (Widget w); NOT in CDE 1.2.3 */
|
|
|
327 |
|
|
|
328 |
%%
|
|
|
329 |
#define XmVoidProc XtProc
|
|
|
330 |
%%
|
|
|
331 |
|
|
|
332 |
+TYPEDEF Boolean (*XmParentProcessProc)( Widget, XmParentProcessData) ;
|
|
|
333 |
+TYPEDEF void (*XmWidgetDispatchProc)( Widget, XEvent *, Mask) ;
|
|
|
334 |
+TYPEDEF void (*XmMenuPopupProc)( Widget, Widget, XEvent *) ;
|
|
|
335 |
+TYPEDEF void (*XmMenuTraversalProc)( Widget, Widget, XmTraversalDirection) ;
|
|
|
336 |
+TYPEDEF void (*XmResizeFlagProc)(Widget, Boolean) ;
|
|
|
337 |
+TYPEDEF void (*XmRealizeOutProc)( Widget, Mask *, XSetWindowAttributes *) ;
|
|
|
338 |
+TYPEDEF Boolean (*XmVisualChangeProc)( Widget, Widget, Widget) ;
|
|
|
339 |
+TYPEDEF void (*XmTraversalProc)( Widget, XtPointer, XtPointer, int) ;
|
|
|
340 |
+TYPEDEF void (*XmFocusMovedProc)( Widget, XtPointer, XtPointer) ;
|
|
|
341 |
+TYPEDEF void (*XmCacheCopyProc)( XtPointer, XtPointer, size_t) ;
|
|
|
342 |
+TYPEDEF void (*XmGadgetCacheProc)( XtPointer) ;
|
|
|
343 |
+TYPEDEF int (*XmCacheCompareProc)( XtPointer, XtPointer) ;
|
|
|
344 |
+TYPEDEF Boolean (*XmWidgetBaselineProc)(Widget, Dimension **, int *);
|
|
|
345 |
+TYPEDEF Boolean (*XmWidgetDisplayRectProc)(Widget, XRectangle *);
|
|
|
346 |
+TYPEDEF void (*XmWidgetMarginsProc)(Widget, XmBaselineMargins *);
|
|
|
347 |
+TYPEDEF XmNavigability (*XmWidgetNavigableProc)( Widget) ;
|
|
|
348 |
+TYPEDEF void (*XmFocusChangeProc)(Widget, XmFocusChange);
|
|
|
349 |
|
|
|
350 |
|
|
|
351 |
+FIELD (struct) _XmBuildVirtualKeyStruct := {
|
|
|
352 |
Modifiers mod;
|
|
|
353 |
char *key;
|
|
|
354 |
char *action;
|
|
|
355 |
};
|
|
|
356 |
|
|
|
357 |
|
|
|
358 |
+FIELD (struct) _XmTextInsertPair := {
|
|
|
359 |
Atom selection;
|
|
|
360 |
Atom target;
|
|
|
361 |
};
|
|
|
362 |
|
|
|
363 |
+FIELD (struct) _XmHighlightRec := {
|
|
|
364 |
XmTextPosition position;
|
|
|
365 |
XmHighlightMode mode;
|
|
|
366 |
};
|
|
|
367 |
|
|
|
368 |
+FIELD (struct) _XmHighlightData := {
|
|
|
369 |
Cardinal number;
|
|
|
370 |
Cardinal maximum;
|
|
|
371 |
_XmHighlightRec *list;
|
|
|
372 |
};
|
|
|
373 |
|
|
|
374 |
+ENUM XmSelectType := { XmDEST_SELECT, XmPRIM_SELECT };
|
|
|
375 |
|
|
|
376 |
+FIELD (struct) _XmInsertSelect := {
|
|
|
377 |
Boolean done_status;
|
|
|
378 |
Boolean success_status;
|
|
|
379 |
XmSelectType select_type;
|
|
|
380 |
XSelectionRequestEvent *event;
|
|
|
381 |
};
|
|
|
382 |
|
|
|
383 |
+FIELD (struct) _XmTextActionRec := {
|
|
|
384 |
XEvent *event;
|
|
|
385 |
String *params;
|
|
|
386 |
Cardinal *num_params;
|
|
|
387 |
};
|
|
|
388 |
|
|
|
389 |
+FIELD (struct) _XmTextDropTransferRec := {
|
|
|
390 |
Widget widget;
|
|
|
391 |
XmTextPosition insert_pos;
|
|
|
392 |
int num_chars;
|
|
|
393 |
Time timestamp;
|
|
|
394 |
Boolean move;
|
|
|
395 |
};
|
|
|
396 |
|
|
|
397 |
+FIELD (struct) _XmTextPrimSelect := {
|
|
|
398 |
XmTextPosition position;
|
|
|
399 |
Atom target;
|
|
|
400 |
Time time;
|
|
|
401 |
int num_chars;
|
|
|
402 |
int ref_count;
|
|
|
403 |
};
|
|
|
404 |
|
|
|
405 |
+FIELD (struct) XmTextContextDataRec := {
|
|
|
406 |
Screen *screen;
|
|
|
407 |
XContext context;
|
|
|
408 |
unsigned char type;
|
|
|
409 |
};
|
|
|
410 |
|
|
|
411 |
+TYPEDEF XmTextContextDataRec *XmTextContextData;
|
|
|
412 |
|
|
|
413 |
+CONST int _XM_IS_DEST_CTX;
|
|
|
414 |
+CONST int _XM_IS_GC_DATA_CTX;
|
|
|
415 |
+CONST int _XM_IS_PIXMAP_CTX;
|
|
|
416 |
|
|
|
417 |
+CONST int XmTEXT_DRAG_ICON_WIDTH;
|
|
|
418 |
+CONST int XmTEXT_DRAG_ICON_HEIGHT;
|
|
|
419 |
+CONST int XmTEXT_DRAG_ICON_X_HOT;
|
|
|
420 |
+CONST int XmTEXT_DRAG_ICON_Y_HOT;
|
|
|
421 |
|
|
|
422 |
/* Defines used by geometry manager utilities */
|
|
|
423 |
|
|
|
424 |
+CONST int XmGET_ACTUAL_SIZE;
|
|
|
425 |
+CONST int XmGET_PREFERRED_SIZE;
|
|
|
426 |
+CONST int XmGEO_PRE_SET;
|
|
|
427 |
+CONST int XmGEO_POST_SET;
|
|
|
428 |
|
|
|
429 |
+CONST int XmGEO_EXPAND;
|
|
|
430 |
+CONST int XmGEO_CENTER;
|
|
|
431 |
+CONST int XmGEO_PACK;
|
|
|
432 |
|
|
|
433 |
+CONST int XmGEO_PROPORTIONAL;
|
|
|
434 |
+CONST int XmGEO_AVERAGING;
|
|
|
435 |
+CONST int XmGEO_WRAP;
|
|
|
436 |
|
|
|
437 |
+CONST int XmGEO_ROW_MAJOR;
|
|
|
438 |
+CONST int XmGEO_COLUMN_MAJOR;
|
|
|
439 |
|
|
|
440 |
+TYPE (struct) _XmGeoMatrixRec;
|
|
|
441 |
+TYPEDEF _XmGeoMatrixRec *XmGeoMatrix;
|
|
|
442 |
|
|
|
443 |
+TYPE (union) _XmGeoMajorLayoutRec;
|
|
|
444 |
+TYPEDEF _XmGeoMajorLayoutRec *XmGeoMajorLayout;
|
|
|
445 |
|
|
|
446 |
+FIELD (struct) XmKidGeometryRec := {
|
|
|
447 |
Widget kid;
|
|
|
448 |
XtWidgetGeometry box;
|
|
|
449 |
};
|
|
|
450 |
|
|
|
451 |
+TYPEDEF XmKidGeometryRec *XmKidGeometry;
|
|
|
452 |
|
|
|
453 |
+TYPEDEF void (*XmGeoArrangeProc)(XmGeoMatrix, Position, Position, Dimension *, Dimension *) ;
|
|
|
454 |
+TYPEDEF Boolean (*XmGeoExceptProc)( XmGeoMatrix ) ;
|
|
|
455 |
+TYPEDEF void (*XmGeoExtDestructorProc)( XtPointer ) ;
|
|
|
456 |
+TYPEDEF void (*XmGeoSegmentFixUpProc)( XmGeoMatrix, int, XmGeoMajorLayout,
|
|
|
457 |
XmKidGeometry) ;
|
|
|
458 |
+FIELD (struct) XmGeoRowLayoutRec := {
|
|
|
459 |
Boolean end ;
|
|
|
460 |
XmGeoSegmentFixUpProc fix_up ;
|
|
|
461 |
Dimension even_width ;
|
|
|
462 |
Dimension even_height ;
|
|
|
463 |
Dimension min_height ;
|
|
|
464 |
Boolean stretch_height ;
|
|
|
465 |
Boolean uniform_border ;
|
|
|
466 |
Dimension border ;
|
|
|
467 |
unsigned char fill_mode ;
|
|
|
468 |
unsigned char fit_mode ;
|
|
|
469 |
Boolean sticky_end ;
|
|
|
470 |
Dimension space_above ;
|
|
|
471 |
Dimension space_end ;
|
|
|
472 |
Dimension space_between ;
|
|
|
473 |
Dimension max_box_height ;
|
|
|
474 |
Dimension boxes_width ;
|
|
|
475 |
Dimension fill_width ;
|
|
|
476 |
Dimension box_count ;
|
|
|
477 |
};
|
|
|
478 |
|
|
|
479 |
+TYPEDEF XmGeoRowLayoutRec *XmGeoRowLayout ;
|
|
|
480 |
|
|
|
481 |
+FIELD (struct) XmGeoColumnLayoutRec := {
|
|
|
482 |
Boolean end ;
|
|
|
483 |
XmGeoSegmentFixUpProc fix_up ;
|
|
|
484 |
Dimension even_height ;
|
|
|
485 |
Dimension even_width ;
|
|
|
486 |
Dimension min_width ;
|
|
|
487 |
Boolean stretch_width ;
|
|
|
488 |
Boolean uniform_border ;
|
|
|
489 |
Dimension border ;
|
|
|
490 |
unsigned char fill_mode ;
|
|
|
491 |
unsigned char fit_mode ;
|
|
|
492 |
Boolean sticky_end ;
|
|
|
493 |
Dimension space_left ;
|
|
|
494 |
Dimension space_end ;
|
|
|
495 |
Dimension space_between ;
|
|
|
496 |
Dimension max_box_width ;
|
|
|
497 |
Dimension boxes_height ;
|
|
|
498 |
Dimension fill_height ;
|
|
|
499 |
Dimension box_count ;
|
|
|
500 |
};
|
|
|
501 |
|
|
|
502 |
+TYPEDEF XmGeoColumnLayoutRec *XmGeoColumnLayout ;
|
|
|
503 |
|
|
|
504 |
+FIELD (union) _XmGeoMajorLayoutRec := {
|
|
|
505 |
XmGeoRowLayoutRec row ;
|
|
|
506 |
XmGeoColumnLayoutRec col ;
|
|
|
507 |
};
|
|
|
508 |
|
|
|
509 |
+FIELD (struct) _XmGeoMatrixRec := {
|
|
|
510 |
Widget composite ;
|
|
|
511 |
Widget instigator ;
|
|
|
512 |
XtWidgetGeometry instig_request ;
|
|
|
513 |
XtWidgetGeometry parent_request ;
|
|
|
514 |
XtWidgetGeometry *in_layout ;
|
|
|
515 |
XmKidGeometry boxes ;
|
|
|
516 |
XmGeoMajorLayout layouts ;
|
|
|
517 |
Dimension margin_w ;
|
|
|
518 |
Dimension margin_h ;
|
|
|
519 |
Boolean stretch_boxes ;
|
|
|
520 |
Boolean uniform_border ;
|
|
|
521 |
Dimension border ;
|
|
|
522 |
Dimension max_major ;
|
|
|
523 |
Dimension boxes_minor ;
|
|
|
524 |
Dimension fill_minor ;
|
|
|
525 |
Dimension width ;
|
|
|
526 |
Dimension height ;
|
|
|
527 |
XmGeoExceptProc set_except ;
|
|
|
528 |
XmGeoExceptProc almost_except ;
|
|
|
529 |
XmGeoExceptProc no_geo_request ;
|
|
|
530 |
XtPointer extension ;
|
|
|
531 |
XmGeoExtDestructorProc ext_destructor ;
|
|
|
532 |
XmGeoArrangeProc arrange_boxes ;
|
|
|
533 |
unsigned char major_order ;
|
|
|
534 |
};
|
|
|
535 |
|
|
|
536 |
+TYPEDEF _XmGeoMatrixRec XmGeoMatrixRec;
|
|
|
537 |
|
|
|
538 |
+TYPEDEF XmGeoMatrix (*XmGeoCreateProc)( Widget, Widget, XtWidgetGeometry *) ;
|
|
|
539 |
|
|
|
540 |
+DEFINE XmInheritCallbackProc %% ((XtCallbackProc) _XtInherit) %% ;
|
|
|
541 |
+DEFINE XmInheritTraversalProc %% ((XmTraversalProc) _XtInherit) %% ;
|
|
|
542 |
+DEFINE XmInheritParentProcess %% ((XmParentProcessProc) _XtInherit) %% ;
|
|
|
543 |
+DEFINE XmInheritWidgetProc %% ((XtWidgetProc) _XtInherit) %% ;
|
|
|
544 |
+DEFINE XmInheritMenuProc %% ((XmMenuProc) _XtInherit) %% ;
|
|
|
545 |
+DEFINE XmInheritTranslations %% XtInheritTranslations %% ;
|
|
|
546 |
+DEFINE XmInheritCachePart %% ((XmCacheClassPartPtr) _XtInherit) %% ;
|
|
|
547 |
+DEFINE XmInheritBaselineProc %% ((XmWidgetBaselineProc) _XtInherit) %% ;
|
|
|
548 |
+DEFINE XmInheritDisplayRectProc %% ((XmWidgetDisplayRectProc) _XtInherit) %% ;
|
|
|
549 |
+DEFINE XmInheritGeoMatrixCreate %% ((XmGeoCreateProc) _XtInherit) %% ;
|
|
|
550 |
+DEFINE XmInheritFocusMovedProc %% ((XmFocusMovedProc) _XtInherit) %% ;
|
|
|
551 |
+DEFINE XmInheritClass %% ((WidgetClass) &_XmInheritClass) %% ;
|
|
|
552 |
+DEFINE XmInheritInitializePrehook %% ((XtInitProc) _XtInherit) %% ;
|
|
|
553 |
+DEFINE XmInheritSetValuesPrehook %% ((XtSetValuesFunc) _XtInherit) %% ;
|
|
|
554 |
+DEFINE XmInheritGetValuesPrehook %% ((XtArgsProc) _XtInherit) %% ;
|
|
|
555 |
+DEFINE XmInheritInitializePosthook %% ((XtInitProc) _XtInherit) %% ;
|
|
|
556 |
+DEFINE XmInheritSetValuesPosthook %% ((XtSetValuesFunc) _XtInherit) %% ;
|
|
|
557 |
+DEFINE XmInheritGetValuesPosthook %% ((XtArgsProc) _XtInherit) %% ;
|
|
|
558 |
+DEFINE XmInheritSecObjectCreate %% ((XtInitProc) _XtInherit) %% ;
|
|
|
559 |
+DEFINE XmInheritGetSecResData %% ((XmGetSecResDataFunc) _XtInherit) %% ;
|
|
|
560 |
+DEFINE XmInheritInputDispatch %% ((XmWidgetDispatchProc) _XtInherit) %% ;
|
|
|
561 |
+DEFINE XmInheritVisualChange %% ((XmVisualChangeProc) _XtInherit) %% ;
|
|
|
562 |
+DEFINE XmInheritArmAndActivate %% ((XtActionProc) _XtInherit) %% ;
|
|
|
563 |
+DEFINE XmInheritActionProc %% ((XtActionProc) _XtInherit) %% ;
|
|
|
564 |
+DEFINE XmInheritFocusChange %% ((XmFocusChangeProc) _XtInherit) %% ;
|
|
|
565 |
+DEFINE XmInheritWidgetNavigable %% ((XmWidgetNavigableProc) _XtInherit) %% ;
|
|
|
566 |
+DEFINE XmInheritClassPartInitPrehook %% ((XtWidgetClassProc) _XtInherit) %% ;
|
|
|
567 |
+DEFINE XmInheritClassPartInitPosthook %% ((XtWidgetClassProc) _XtInherit) %% ;
|
|
|
568 |
+DEFINE XmInheritBorderHighlight %% ((XtWidgetProc) _XtInherit) %% ;
|
|
|
569 |
+DEFINE XmInheritBorderUnhighlight %% ((XtWidgetProc) _XtInherit) %% ;
|
|
|
570 |
|
|
|
571 |
+DEFINE XmInheritRealize %% ((XtRealizeProc) _XtInherit) %%;
|
|
|
572 |
+DEFINE XmInheritResize %% ((XtWidgetProc) _XtInherit) %%;
|
|
|
573 |
+DEFINE XmInheritSetOverrideCallback %% ((XtWidgetProc) _XtInherit) %%;
|
|
|
574 |
|
|
|
575 |
+CONST int XmFIRST_APPLICATION_SUBCLASS_BIT;
|
|
|
576 |
|
|
|
577 |
+CONST int XmCASCADE_BUTTON_BIT;
|
|
|
578 |
+CONST int XmCASCADE_BUTTON_GADGET_BIT;
|
|
|
579 |
+CONST int XmCOMMAND_BOX_BIT;
|
|
|
580 |
+CONST int XmDIALOG_SHELL_BIT;
|
|
|
581 |
+CONST int XmLIST_BIT;
|
|
|
582 |
+CONST int XmFORM_BIT;
|
|
|
583 |
+CONST int XmTEXT_FIELD_BIT;
|
|
|
584 |
+CONST int XmGADGET_BIT;
|
|
|
585 |
+CONST int XmLABEL_BIT;
|
|
|
586 |
+CONST int XmLABEL_GADGET_BIT;
|
|
|
587 |
+CONST int XmMAIN_WINDOW_BIT;
|
|
|
588 |
+CONST int XmMANAGER_BIT;
|
|
|
589 |
+CONST int XmMENU_SHELL_BIT;
|
|
|
590 |
+CONST int XmDRAWN_BUTTON_BIT;
|
|
|
591 |
+CONST int XmPRIMITIVE_BIT;
|
|
|
592 |
+CONST int XmPUSH_BUTTON_BIT;
|
|
|
593 |
+CONST int XmPUSH_BUTTON_GADGET_BIT;
|
|
|
594 |
+CONST int XmROW_COLUMN_BIT;
|
|
|
595 |
+CONST int XmSCROLL_BAR_BIT;
|
|
|
596 |
+CONST int XmSCROLLED_WINDOW_BIT;
|
|
|
597 |
+CONST int XmSELECTION_BOX_BIT;
|
|
|
598 |
+CONST int XmSEPARATOR_BIT;
|
|
|
599 |
+CONST int XmSEPARATOR_GADGET_BIT;
|
|
|
600 |
+CONST int XmTEXT_BIT;
|
|
|
601 |
+CONST int XmTOGGLE_BUTTON_BIT;
|
|
|
602 |
+CONST int XmTOGGLE_BUTTON_GADGET_BIT;
|
|
|
603 |
+CONST int XmDROP_TRANSFER_BIT;
|
|
|
604 |
+CONST int XmDROP_SITE_MANAGER_BIT;
|
|
|
605 |
+CONST int XmDISPLAY_BIT, XmSCREEN_BIT;
|
|
|
606 |
+CONST int XmARROW_BUTTON_BIT;
|
|
|
607 |
+CONST int XmARROW_BUTTON_GADGET_BIT;
|
|
|
608 |
+CONST int XmBULLETIN_BOARD_BIT;
|
|
|
609 |
+CONST int XmDRAWING_AREA_BIT;
|
|
|
610 |
+CONST int XmFILE_SELECTION_BOX_BIT;
|
|
|
611 |
+CONST int XmFRAME_BIT;
|
|
|
612 |
+CONST int XmMESSAGE_BOX_BIT;
|
|
|
613 |
+CONST int XmSASH_BIT;
|
|
|
614 |
+CONST int XmSCALE_BIT;
|
|
|
615 |
+CONST int XmPANED_WINDOW_BIT;
|
|
|
616 |
+CONST int XmVENDOR_SHELL_BIT;
|
|
|
617 |
+CONST int XmFAST_SUBCLASS_TAIL_BIT;
|
|
|
618 |
|
|
|
619 |
+CONST int XmLAST_FAST_SUBCLASS_BIT;
|
|
|
620 |
|
|
|
621 |
+CONST int XmObjectIndex;
|
|
|
622 |
+CONST int ObjectIndex;
|
|
|
623 |
+CONST int XmRectObjIndex;
|
|
|
624 |
+CONST int RectObjIndex;
|
|
|
625 |
+CONST int XmWindowObjIndex;
|
|
|
626 |
+CONST int WindowObjIndex;
|
|
|
627 |
+CONST int XmCoreIndex;
|
|
|
628 |
+CONST int CoreIndex;
|
|
|
629 |
+CONST int XmCompositeIndex;
|
|
|
630 |
+CONST int CompositeIndex;
|
|
|
631 |
+CONST int XmConstraintIndex;
|
|
|
632 |
+CONST int ConstraintIndex;
|
|
|
633 |
+CONST int XmGadgetIndex;
|
|
|
634 |
+CONST int XmPrimitiveIndex;
|
|
|
635 |
+CONST int XmManagerIndex;
|
|
|
636 |
|
|
|
637 |
+CONST int XmArrowBIndex;
|
|
|
638 |
+CONST int XmArrowButtonIndex;
|
|
|
639 |
+CONST int XmLabelIndex;
|
|
|
640 |
+CONST int XmListIndex;
|
|
|
641 |
+CONST int XmScrollBarIndex;
|
|
|
642 |
+CONST int XmSeparatorIndex;
|
|
|
643 |
+CONST int XmTextIndex;
|
|
|
644 |
|
|
|
645 |
+CONST int XmCascadeBIndex;
|
|
|
646 |
+CONST int XmCascadeButtonIndex;
|
|
|
647 |
+CONST int XmDrawnBIndex;
|
|
|
648 |
+CONST int XmDrawnButtonIndex;
|
|
|
649 |
+CONST int XmPushBIndex;
|
|
|
650 |
+CONST int XmPushButtonIndex;
|
|
|
651 |
+CONST int XmToggleBIndex;
|
|
|
652 |
+CONST int XmToggleButtonIndex;
|
|
|
653 |
|
|
|
654 |
+CONST int XmArrowBGIndex;
|
|
|
655 |
+CONST int XmArrowButtonGadgetIndex;
|
|
|
656 |
+CONST int XmLabelGIndex;
|
|
|
657 |
+CONST int XmLabelGadgetIndex;
|
|
|
658 |
+CONST int XmSeparatoGIndex;
|
|
|
659 |
+CONST int XmSeparatorGadgetIndex;
|
|
|
660 |
|
|
|
661 |
+CONST int XmCascadeBGIndex;
|
|
|
662 |
+CONST int XmCascadeButtonGadgetIndex;
|
|
|
663 |
+CONST int XmPushBGIndex;
|
|
|
664 |
+CONST int XmPushButtonGadgetIndex;
|
|
|
665 |
+CONST int XmToggleBGIndex;
|
|
|
666 |
+CONST int XmToggleButtonGadgetIndex;
|
|
|
667 |
|
|
|
668 |
+CONST int XmBulletinBIndex;
|
|
|
669 |
+CONST int XmBulletinBoardIndex;
|
|
|
670 |
+CONST int XmDrawingAIndex;
|
|
|
671 |
+CONST int XmDrawingAreaIndex;
|
|
|
672 |
+CONST int XmFrameIndex;
|
|
|
673 |
+CONST int XmPanedWIndex;
|
|
|
674 |
+CONST int XmPanedWindowIndex;
|
|
|
675 |
+CONST int XmRowColumnIndex;
|
|
|
676 |
+CONST int XmScaleIndex;
|
|
|
677 |
+CONST int XmScrolledWIndex;
|
|
|
678 |
+CONST int XmScrolledWindowIndex;
|
|
|
679 |
|
|
|
680 |
+CONST int XmFormIndex;
|
|
|
681 |
+CONST int XmMessageBIndex;
|
|
|
682 |
+CONST int XmMessageBoxIndex;
|
|
|
683 |
+CONST int XmSelectioBIndex;
|
|
|
684 |
+CONST int XmSelectionBoxIndex;
|
|
|
685 |
|
|
|
686 |
+CONST int XmMainWIndex;
|
|
|
687 |
+CONST int XmMainWindowIndex;
|
|
|
688 |
|
|
|
689 |
+CONST int XmCommandIndex;
|
|
|
690 |
+CONST int XmFileSBIndex;
|
|
|
691 |
+CONST int XmFileSelectionBoxIndex;
|
|
|
692 |
|
|
|
693 |
+CONST int XmShellIndex;
|
|
|
694 |
+CONST int ShellIndex;
|
|
|
695 |
+CONST int XmOverrideShellIndex;
|
|
|
696 |
+CONST int OverrideShellIndex;
|
|
|
697 |
+CONST int XmWMShellIndex;
|
|
|
698 |
+CONST int WMShellIndex;
|
|
|
699 |
+CONST int XmVendorShellIndex;
|
|
|
700 |
+CONST int VendorShellIndex;
|
|
|
701 |
+CONST int XmTransientShellIndex;
|
|
|
702 |
+CONST int TransientShellIndex;
|
|
|
703 |
+CONST int XmTopLevelShellIndex;
|
|
|
704 |
+CONST int TopLevelShellIndex;
|
|
|
705 |
+CONST int XmApplicationShellIndex;
|
|
|
706 |
+CONST int ApplicationShellIndex;
|
|
|
707 |
|
|
|
708 |
+CONST int XmDialogSIndex;
|
|
|
709 |
+CONST int XmDialogShellIndex;
|
|
|
710 |
+CONST int XmMenuShellIndex;
|
|
|
711 |
|
|
|
712 |
|
|
|
713 |
+FIELD (struct) XmPartResource := {
|
|
|
714 |
String resource_name;
|
|
|
715 |
String resource_class;
|
|
|
716 |
String resource_type;
|
|
|
717 |
Cardinal resource_size;
|
|
|
718 |
Cardinal resource_offset;
|
|
|
719 |
String default_type;
|
|
|
720 |
XtPointer default_addr;
|
|
|
721 |
};
|
|
|
722 |
|
|
|
723 |
/* Not sure what to do about XmPartOffset, et al. */
|
|
|
724 |
|
|
|
725 |
+FIELD (struct) XmRegionBox := {
|
|
|
726 |
short x1, x2, y1, y2;
|
|
|
727 |
};
|
|
|
728 |
|
|
|
729 |
+FIELD (struct) XmRegionRec {
|
|
|
730 |
long size;
|
|
|
731 |
long numRects;
|
|
|
732 |
XmRegionBox *rects;
|
|
|
733 |
XmRegionBox extents;
|
|
|
734 |
};
|
|
|
735 |
|
|
|
736 |
+TYPEDEF XmRegionRec *XmRegion;
|
|
|
737 |
|
|
|
738 |
|
|
|
739 |
+FUNC XmGadget _XmInputInGadget(Widget cw, int x, int y) ;
|
|
|
740 |
+FUNC XmGadget _XmInputForGadget(Widget cw, int x, int y) ;
|
|
|
741 |
+FUNC void _XmConfigureObject(Widget g, Position x, Position y, Dimension width, Dimension height, Dimension border_width) ;
|
|
|
742 |
+FUNC void _XmResizeObject(Widget g, Dimension width, Dimension height, Dimension border_width) ;
|
|
|
743 |
+FUNC void _XmMoveObject(Widget g, Position x, Position y) ;
|
|
|
744 |
+FUNC void _XmRedisplayGadgets(Widget w, XEvent *event, Region region) ;
|
|
|
745 |
+FUNC void _XmDispatchGadgetInput(Widget g, XEvent *event, Mask mask) ;
|
|
|
746 |
|
|
|
747 |
+FUNC Boolean _XmInstallImage(XImage *image, char *image_name, int hot_x, int hot_y) ;
|
|
|
748 |
+FUNC Boolean _XmGetImage(Screen *screen, char *image_name, XImage **image) ;
|
|
|
749 |
+FUNC Boolean _XmGetPixmapData(Screen *screen, Pixmap pixmap,
|
|
|
750 |
char **image_name, int *depth,
|
|
|
751 |
Pixel *foreground, Pixel *background,
|
|
|
752 |
int *hot_x, int *hot_y, unsigned int *width,
|
|
|
753 |
unsigned int *height) ;
|
|
|
754 |
+FUNC Pixmap _XmGetPixmap(Screen *screen, char *image_name, int depth,
|
|
|
755 |
Pixel foreground, Pixel background) ;
|
|
|
756 |
+FUNC Boolean _XmInstallPixmap(Pixmap pixmap, Screen *screen, char *image_name,
|
|
|
757 |
Pixel foreground, Pixel background) ;
|
|
|
758 |
|
|
|
759 |
+FUNC Boolean _XmMapBtnEvent(String str, int *eventType,
|
|
|
760 |
unsigned int *button, unsigned int *modifiers) ;
|
|
|
761 |
+FUNC Boolean _XmMapKeyEvent(String str, int *eventType, unsigned *keysym,
|
|
|
762 |
unsigned int *modifiers) ;
|
|
|
763 |
+FUNC Boolean _XmMatchBtnEvent(XEvent *event, int eventType,
|
|
|
764 |
unsigned int button, unsigned int modifiers) ;
|
|
|
765 |
+FUNC Boolean _XmMatchKeyEvent(XEvent *event, int eventType, unsigned int key,
|
|
|
766 |
unsigned int modifiers) ;
|
|
|
767 |
+FUNC XImage * _XmGetImageFromFile(char *filename) ;
|
|
|
768 |
+FUNC XImage * _XmGetImageAndHotSpotFromFile(char *filename, int *hot_x, int *hot_y) ;
|
|
|
769 |
|
|
|
770 |
+CONST int XmLABEL_FONTLIST;
|
|
|
771 |
+CONST int XmBUTTON_FONTLIST;
|
|
|
772 |
+CONST int XmTEXT_FONTLIST;
|
|
|
773 |
|
|
|
774 |
+FUNC void _XmRegisterConverters( void ) ;
|
|
|
775 |
+FUNC void _XmWarning(Widget w, char *message) ;
|
|
|
776 |
+FUNC Boolean _XmStringsAreEqual(char *in_str, char *test_str) ;
|
|
|
777 |
+FUNC XmFontList _XmGetDefaultFontList(Widget w, unsigned char fontListType) ;
|
|
|
778 |
+FUNC char * _XmConvertCSToString(XmString cs) ;
|
|
|
779 |
+FUNC Boolean _XmCvtXmStringToCT(XrmValue *from, XrmValue *to) ;
|
|
|
780 |
|
|
|
781 |
+FUNC void _XmBuildResources(XmSyntheticResource **wc_resources_ptr,
|
|
|
782 |
int *wc_num_resources_ptr, XmSyntheticResource *sc_resources,
|
|
|
783 |
int sc_num_resources) ;
|
|
|
784 |
+FUNC void _XmInitializeSyntheticResources(XmSyntheticResource *resources,
|
|
|
785 |
int num_resources) ;
|
|
|
786 |
+FUNC void _XmPrimitiveGetValuesHook(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
787 |
+FUNC void _XmGadgetGetValuesHook(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
788 |
+FUNC void _XmManagerGetValuesHook(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
789 |
+FUNC void _XmExtGetValuesHook(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
790 |
+FUNC void _XmExtImportArgs(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
791 |
+FUNC void _XmPrimitiveImportArgs(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
792 |
+FUNC void _XmGadgetImportArgs(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
793 |
+FUNC void _XmGadgetImportSecondaryArgs(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
794 |
+FUNC void _XmManagerImportArgs(Widget w, ArgList args, Cardinal *num_args) ;
|
|
|
795 |
+FUNC int _XmConvertUnits(Screen *screen, int dimension, int from_type,
|
|
|
796 |
int from_val, int to_type) ;
|
|
|
797 |
+FUNC XmImportOperator _XmToHorizontalPixels(Widget widget, int offset, XtArgVal *value) ;
|
|
|
798 |
+FUNC XmImportOperator _XmToVerticalPixels(Widget widget, int offset, XtArgVal *value) ;
|
|
|
799 |
+FUNC void _XmFromHorizontalPixels(Widget widget, int offset, XtArgVal *value) ;
|
|
|
800 |
+FUNC void _XmFromVerticalPixels(Widget widget, int offset, XtArgVal *value) ;
|
|
|
801 |
+FUNC void _XmSortResourceList(XrmResource *list[], Cardinal len) ;
|
|
|
802 |
+FUNC void _XmUnitTypeDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
803 |
+FUNC unsigned char _XmGetUnitType(Widget widget) ;
|
|
|
804 |
|
|
|
805 |
+FUNC Boolean _XmIsEventUnique(XEvent *event) ;
|
|
|
806 |
+FUNC void _XmRecordEvent(XEvent *event) ;
|
|
|
807 |
|
|
|
808 |
+CONST int XmLOOK_AT_SCREEN;
|
|
|
809 |
+CONST int XmLOOK_AT_CMAP;
|
|
|
810 |
+CONST int XmLOOK_AT_BACKGROUND;
|
|
|
811 |
+CONST int XmLOOK_AT_FOREGROUND;
|
|
|
812 |
+CONST int XmLOOK_AT_TOP_SHADOW;
|
|
|
813 |
+CONST int XmLOOK_AT_BOTTOM_SHADOW;
|
|
|
814 |
+CONST int XmLOOK_AT_SELECT;
|
|
|
815 |
|
|
|
816 |
+CONST int XmBACKGROUND;
|
|
|
817 |
+CONST int XmFOREGROUND;
|
|
|
818 |
+CONST int XmTOP_SHADOW;
|
|
|
819 |
+CONST int XmBOTTOM_SHADOW;
|
|
|
820 |
+CONST int XmSELECT;
|
|
|
821 |
|
|
|
822 |
+FIELD (struct) XmColorData := {
|
|
|
823 |
Screen * screen;
|
|
|
824 |
Colormap color_map;
|
|
|
825 |
unsigned char allocated;
|
|
|
826 |
XColor background;
|
|
|
827 |
XColor foreground;
|
|
|
828 |
XColor top_shadow;
|
|
|
829 |
XColor bottom_shadow;
|
|
|
830 |
XColor select;
|
|
|
831 |
};
|
|
|
832 |
|
|
|
833 |
+FUNC void _XmRegisterPixmapConverters( void ) ;
|
|
|
834 |
+FUNC char * _XmGetBGPixmapName( void ) ;
|
|
|
835 |
+FUNC void _XmClearBGPixmapName( void ) ;
|
|
|
836 |
+FUNC void _XmForegroundColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
837 |
+FUNC void _XmHighlightColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
838 |
+FUNC void _XmBackgroundColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
839 |
+FUNC void _XmTopShadowColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
840 |
+FUNC void _XmBottomShadowColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
841 |
+FUNC void _XmSelectColorDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
842 |
+FUNC void _XmPrimitiveTopShadowPixmapDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
843 |
+FUNC void _XmManagerTopShadowPixmapDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
844 |
+FUNC void _XmPrimitiveHighlightPixmapDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
845 |
+FUNC void _XmManagerHighlightPixmapDefault(Widget widget, int offset, XrmValue *value) ;
|
|
|
846 |
+FUNC void _XmGetDefaultThresholdsForScreen(Screen *screen) ;
|
|
|
847 |
+FUNC String _XmGetDefaultBackgroundColorSpec(Screen *screen) ;
|
|
|
848 |
+FUNC void _XmSetDefaultBackgroundColorSpec(Screen *screen, String new_color_spec) ;
|
|
|
849 |
+FUNC XmColorData * _XmGetDefaultColors(Screen *screen, Colormap color_map) ;
|
|
|
850 |
+FUNC Boolean _XmSearchColorCache(unsigned int which, XmColorData *values, XmColorData **ret) ;
|
|
|
851 |
+FUNC XmColorData * _XmAddToColorCache(XmColorData *new_rec) ;
|
|
|
852 |
+FUNC Pixel _XmBlackPixel(Screen *screen, Colormap colormap, XColor blackcolor) ;
|
|
|
853 |
+FUNC Pixel _XmWhitePixel( Screen *screen, Colormap colormap, XColor whitecolor) ;
|
|
|
854 |
+FUNC Pixel _XmAccessColorData(XmColorData *cd, unsigned char which) ;
|
|
|
855 |
+FUNC XmColorData * _XmGetColors(Screen *screen, Colormap color_map, Pixel background) ;
|
|
|
856 |
|
|
|
857 |
+FUNC XFontStruct * _XmGetFirstFont(XmFontListEntry entry) ;
|
|
|
858 |
+FUNC Boolean _XmFontListGetDefaultFont(XmFontList fontlist, XFontStruct **font_struct) ;
|
|
|
859 |
+FUNC Boolean _XmFontListSearch(XmFontList fontlist, XmStringCharSet charset, short *indx, XFontStruct **font_struct) ;
|
|
|
860 |
+FUNC Boolean _XmStringIsXmString(XmString string) ;
|
|
|
861 |
+FUNC Boolean _XmStringInitContext(_XmStringContext *context, _XmString string) ;
|
|
|
862 |
+FUNC Boolean _XmStringGetNextSegment(_XmStringContext context, XmStringCharSet *charset,
|
|
|
863 |
XmStringDirection *direction, char **text,
|
|
|
864 |
short *char_count, Boolean *separator) ;
|
|
|
865 |
+FUNC void _XmStringFreeContext(_XmStringContext context) ;
|
|
|
866 |
+FUNC Dimension _XmStringWidth(XmFontList fontlist, _XmString string) ;
|
|
|
867 |
+FUNC Dimension _XmStringHeight(XmFontList fontlist, _XmString string) ;
|
|
|
868 |
+FUNC void _XmStringExtent(XmFontList fontlist, _XmString string, Dimension *width, Dimension *height) ;
|
|
|
869 |
+FUNC Boolean _XmStringEmpty(_XmString string) ;
|
|
|
870 |
+FUNC void _XmStringDraw(Display *d, Window w, XmFontList fontlist,
|
|
|
871 |
_XmString string, GC gc, Position x, Position y,
|
|
|
872 |
Dimension width, unsigned char align, unsigned char lay_dir,
|
|
|
873 |
XRectangle *clip) ;
|
|
|
874 |
+FUNC void _XmStringDrawImage(Display *d, Window w, XmFontList fontlist,
|
|
|
875 |
_XmString string, GC gc, Position x, Position y,
|
|
|
876 |
Dimension width, unsigned char align, unsigned char lay_dir,
|
|
|
877 |
XRectangle *clip) ;
|
|
|
878 |
+FUNC void _XmStringDrawUnderline(Display *d, Window w, XmFontList f,
|
|
|
879 |
_XmString s, GC gc, Position x, Position y,
|
|
|
880 |
Dimension width, unsigned char align, unsigned char lay_dir,
|
|
|
881 |
XRectangle *clip, _XmString u) ;
|
|
|
882 |
+FUNC void _XmStringDrawMnemonic(Display *d, Window w, XmFontList fontlist,
|
|
|
883 |
_XmString string, GC gc, Position x, Position y,
|
|
|
884 |
Dimension width, unsigned char align, unsigned char lay_dir,
|
|
|
885 |
XRectangle *clip, String mnemonic, XmStringCharSet charset) ;
|
|
|
886 |
+FUNC _XmString _XmStringCreate(XmString cs) ;
|
|
|
887 |
+FUNC void _XmStringFree(_XmString string) ;
|
|
|
888 |
+FUNC char * _XmStringGetCurrentCharset( void ) ;
|
|
|
889 |
+FUNC char * _XmCharsetCanonicalize(String charset) ;
|
|
|
890 |
+FUNC void _XmStringUpdate(XmFontList fontlist, _XmString string) ;
|
|
|
891 |
+FUNC _XmString _XmStringCopy(_XmString string) ;
|
|
|
892 |
+FUNC Boolean _XmStringByteCompare(_XmString a, _XmString b) ;
|
|
|
893 |
+FUNC Boolean _XmStringHasSubstring(_XmString string, _XmString substring) ;
|
|
|
894 |
+FUNC XmString _XmStringCreateExternal(XmFontList fontlist, _XmString cs) ;
|
|
|
895 |
+FUNC Dimension _XmStringBaseline(XmFontList fontlist, _XmString string) ;
|
|
|
896 |
+FUNC int _XmStringLineCount(_XmString string) ;
|
|
|
897 |
+FUNC char * _XmStringGetTextConcat(XmString string) ;
|
|
|
898 |
+FUNC Boolean _XmStringIsCurrentCharset(XmStringCharSet c) ;
|
|
|
899 |
+FUNC Boolean _XmStringSingleSegment(XmString str, char **pTextOut, XmStringCharSet *pCharsetOut ) ;
|
|
|
900 |
+FUNC void _XmStringUpdateWMShellTitle(XmString xmstr, Widget shell) ;
|
|
|
901 |
|
|
|
902 |
+CONST int XmTAB_ANY;
|
|
|
903 |
+CONST int XmNONE_OR_BC;
|
|
|
904 |
|
|
|
905 |
|
|
|
906 |
+FUNC XtGeometryResult _XmHandleQueryGeometry(Widget wid, XtWidgetGeometry *intended,
|
|
|
907 |
XtWidgetGeometry *desired, unsigned char policy,
|
|
|
908 |
XmGeoCreateProc createMatrix) ;
|
|
|
909 |
+FUNC XtGeometryResult _XmHandleGeometryManager(Widget wid, Widget instigator,
|
|
|
910 |
XtWidgetGeometry *desired, XtWidgetGeometry *allowed,
|
|
|
911 |
unsigned char policy, XmGeoMatrix *cachePtr,
|
|
|
912 |
XmGeoCreateProc createMatrix) ;
|
|
|
913 |
+FUNC void _XmHandleSizeUpdate(Widget wid, unsigned char policy, XmGeoCreateProc createMatrix) ;
|
|
|
914 |
+FUNC XmGeoMatrix _XmGeoMatrixAlloc(unsigned int numRows, unsigned int numBoxes,
|
|
|
915 |
unsigned int extSize) ;
|
|
|
916 |
+FUNC void _XmGeoMatrixFree(XmGeoMatrix geo_spec) ;
|
|
|
917 |
+FUNC Boolean _XmGeoSetupKid(XmKidGeometry geo, Widget kidWid) ;
|
|
|
918 |
+FUNC void _XmGeoMatrixGet(XmGeoMatrix geoSpec, int geoType) ;
|
|
|
919 |
+FUNC void _XmGeoMatrixSet(XmGeoMatrix geoSpec) ;
|
|
|
920 |
+FUNC void _XmGeoAdjustBoxes(XmGeoMatrix geoSpec) ;
|
|
|
921 |
+FUNC void _XmGeoGetDimensions(XmGeoMatrix geoSpec) ;
|
|
|
922 |
+FUNC void _XmGeoArrangeBoxes(XmGeoMatrix geoSpec, Position x, Position y,
|
|
|
923 |
Dimension *pW, Dimension *pH) ;
|
|
|
924 |
+FUNC Dimension _XmGeoBoxesSameWidth(XmKidGeometry rowPtr, Dimension width) ;
|
|
|
925 |
+FUNC Dimension _XmGeoBoxesSameHeight(XmKidGeometry rowPtr, Dimension height) ;
|
|
|
926 |
+FUNC void _XmSeparatorFix(XmGeoMatrix geoSpec, int action, XmGeoMajorLayout layoutPtr,
|
|
|
927 |
XmKidGeometry rowPtr) ;
|
|
|
928 |
+FUNC void _XmMenuBarFix(XmGeoMatrix geoSpec, int action,
|
|
|
929 |
XmGeoMajorLayout layoutPtr, XmKidGeometry rowPtr) ;
|
|
|
930 |
+FUNC void _XmGeoLoadValues(Widget wid, int geoType, Widget instigator, XtWidgetGeometry *request,
|
|
|
931 |
XtWidgetGeometry *geoResult) ;
|
|
|
932 |
+FUNC int _XmGeoCount_kids(CompositeWidget c) ;
|
|
|
933 |
+FUNC XmKidGeometry _XmGetKidGeo(Widget wid, Widget instigator,
|
|
|
934 |
XtWidgetGeometry *request, int uniform_border,
|
|
|
935 |
Dimension border, int uniform_width_margins,
|
|
|
936 |
int uniform_height_margins, Widget help,
|
|
|
937 |
int geo_type) ;
|
|
|
938 |
+FUNC void _XmGeoClearRectObjAreas( RectObj r, XWindowChanges *old) ;
|
|
|
939 |
+FUNC void _XmSetKidGeo(XmKidGeometry kg, Widget instigator) ;
|
|
|
940 |
+FUNC Boolean _XmGeometryEqual(Widget wid, XtWidgetGeometry *geoA, XtWidgetGeometry *geoB) ;
|
|
|
941 |
+FUNC Boolean _XmGeoReplyYes(Widget wid, XtWidgetGeometry *desired, XtWidgetGeometry *response) ;
|
|
|
942 |
+FUNC XtGeometryResult _XmMakeGeometryRequest(Widget w, XtWidgetGeometry *geom) ;
|
|
|
943 |
|
|
|
944 |
+FUNC void _XmSetDestination(Display *dpy, Widget w) ;
|
|
|
945 |
|
|
|
946 |
+FUNC void _XmImChangeManaged( Widget vw) ;
|
|
|
947 |
+FUNC void _XmImRealize( Widget vw) ;
|
|
|
948 |
+FUNC void _XmImResize( Widget vw) ;
|
|
|
949 |
+FUNC void _XmImRedisplay( Widget vw) ;
|
|
|
950 |
|
|
|
951 |
+FUNC void _XmInitAtomPairs( Display *display) ;
|
|
|
952 |
+FUNC void _XmInitTargetsTable( Display *display) ;
|
|
|
953 |
+FUNC Cardinal _XmIndexToTargets( Widget shell, Cardinal t_index, Atom **targetsRtn) ;
|
|
|
954 |
+FUNC Cardinal _XmTargetsToIndex( Widget shell, Atom *targets, Cardinal numTargets) ;
|
|
|
955 |
+FUNC Atom _XmAllocMotifAtom( Widget shell, Time time) ;
|
|
|
956 |
+FUNC void _XmFreeMotifAtom( Widget shell, Atom atom) ;
|
|
|
957 |
+FUNC void _XmDestroyMotifWindow( Display *dpy) ;
|
|
|
958 |
+FUNC Window _XmGetDragProxyWindow(Display *display) ;
|
|
|
959 |
|
|
|
960 |
+FUNC void _XmDragOverHide( Widget w, Position clipOriginX, Position clipOriginY, XmRegion clipRegion) ;
|
|
|
961 |
+FUNC void _XmDragOverShow( Widget w, Position clipOriginX, Position clipOriginY, XmRegion clipRegion) ;
|
|
|
962 |
+FUNC void _XmDragOverMove( Widget w, Position x, Position y) ;
|
|
|
963 |
+FUNC void _XmDragOverChange( Widget w, unsigned char dropSiteStatus) ;
|
|
|
964 |
+FUNC void _XmDragOverFinish( Widget w, unsigned char completionStatus) ;
|
|
|
965 |
|
|
|
966 |
+FUNC Cursor _XmDragOverGetActiveCursor(Widget w) ;
|
|
|
967 |
+FUNC void _XmDragOverSetInitialPosition(Widget w, Position initialX,
|
|
|
968 |
Position initialY) ;
|
|
|
969 |
+FUNC XmRegion _XmRegionCreate( void ) ;
|
|
|
970 |
+FUNC XmRegion _XmRegionCreateSize(long size) ;
|
|
|
971 |
+FUNC void _XmRegionComputeExtents(XmRegion r) ;
|
|
|
972 |
+FUNC void _XmRegionGetExtents( XmRegion r, XRectangle *rect) ;
|
|
|
973 |
+FUNC void _XmRegionUnionRectWithRegion( XRectangle *rect, XmRegion source,
|
|
|
974 |
XmRegion dest) ;
|
|
|
975 |
+FUNC void _XmRegionIntersectRectWithRegion( XRectangle *rect, XmRegion source,
|
|
|
976 |
XmRegion dest) ;
|
|
|
977 |
+FUNC long _XmRegionGetNumRectangles(XmRegion r) ;
|
|
|
978 |
+FUNC void _XmRegionGetRectangles( XmRegion r, XRectangle **rects, long *nrects) ;
|
|
|
979 |
+FUNC void _XmRegionSetGCRegion( Display *dpy, GC gc, int x_origin, int y_origin,
|
|
|
980 |
XmRegion r) ;
|
|
|
981 |
+FUNC void _XmRegionDestroy( XmRegion r) ;
|
|
|
982 |
+FUNC void _XmRegionOffset( XmRegion pRegion, int x, int y) ;
|
|
|
983 |
+FUNC void _XmRegionIntersect( XmRegion reg1, XmRegion reg2, XmRegion newReg) ;
|
|
|
984 |
+FUNC void _XmRegionUnion( XmRegion reg1, XmRegion reg2, XmRegion newReg) ;
|
|
|
985 |
+FUNC void _XmRegionSubtract( XmRegion regM, XmRegion regS, XmRegion regD) ;
|
|
|
986 |
+FUNC Boolean _XmRegionIsEmpty( XmRegion r) ;
|
|
|
987 |
+FUNC Boolean _XmRegionEqual( XmRegion r1, XmRegion r2) ;
|
|
|
988 |
+FUNC Boolean _XmRegionPointInRegion( XmRegion pRegion, int x, int y) ;
|
|
|
989 |
+FUNC void _XmRegionClear(XmRegion r ) ;
|
|
|
990 |
+FUNC void _XmRegionShrink(XmRegion r, int dx, int dy) ;
|
|
|
991 |
+FUNC void _XmRegionDrawShadow(Display *display, Drawable d, GC top_gc,
|
|
|
992 |
GC bottom_gc, XmRegion region,
|
|
|
993 |
Dimension border_thick, Dimension shadow_thick,
|
|
|
994 |
unsigned int shadow_type ) ;
|
|
|
995 |
|
|
|
996 |
+FUNC void _XmDragUnderAnimation( Widget w, XtPointer clientData, XtPointer callData) ;
|
|
|
997 |
|
|
|
998 |
#
|
|
|
999 |
# The "recursive" relationship between XmP and BaseClass
|
|
|
1000 |
# made tspec unhappy, and later, I couldn't get the build
|
|
|
1001 |
# to accept _XmFastSubClassInit as a definition for a token.
|
|
|
1002 |
# So, I'm defining the necessary bits here. These really
|
|
|
1003 |
# should be abstracted, and put in BaseClassP.h, I think.
|
|
|
1004 |
|
|
|
1005 |
/*
|
|
|
1006 |
+TYPEDEF Cardinal (*XmGetSecResDataFunc)( WidgetClass, XmSecondaryResourceData **);
|
|
|
1007 |
|
|
|
1008 |
+FIELD (struct) _XmObjectClassExtRec := {
|
|
|
1009 |
XtPointer next_extension;
|
|
|
1010 |
XrmQuark record_type;
|
|
|
1011 |
long version;
|
|
|
1012 |
Cardinal record_size;
|
|
|
1013 |
};
|
|
|
1014 |
|
|
|
1015 |
+TYPEDEF _XmObjectClassExtRec XmObjectClassExtRec;
|
|
|
1016 |
|
|
|
1017 |
+TYPEDEF XmObjectClassExtRec *XmObjectClassExt;
|
|
|
1018 |
|
|
|
1019 |
+FIELD (struct) _XmGenericClassExtRec := {
|
|
|
1020 |
XtPointer next_extension;
|
|
|
1021 |
XrmQuark record_type;
|
|
|
1022 |
long version;
|
|
|
1023 |
Cardinal record_size;
|
|
|
1024 |
};
|
|
|
1025 |
|
|
|
1026 |
+TYPEDEF _XmGenericClassExtRec XmGenericClassExtRec;
|
|
|
1027 |
+TYPEDEF XmGenericClassExtRec *XmGenericClassExt;
|
|
|
1028 |
|
|
|
1029 |
+FIELD (struct) _XmWrapperDataRec := {
|
|
|
1030 |
_XmWrapperDataRec *next;
|
|
|
1031 |
WidgetClass widgetClass;
|
|
|
1032 |
XtInitProc initializeLeaf;
|
|
|
1033 |
XtSetValuesFunc setValuesLeaf;
|
|
|
1034 |
XtArgsProc getValuesLeaf;
|
|
|
1035 |
XtRealizeProc realize;
|
|
|
1036 |
XtWidgetClassProc classPartInitLeaf;
|
|
|
1037 |
XtWidgetProc resize;
|
|
|
1038 |
XtGeometryHandler geometry_manager;
|
|
|
1039 |
};
|
|
|
1040 |
|
|
|
1041 |
+TYPEDEF _XmWrapperDataRec XmWrapperDataRec;
|
|
|
1042 |
+TYPEDEF XmWrapperDataRec *XmWrapperData;
|
|
|
1043 |
|
|
|
1044 |
+FIELD (struct) _XmBaseClassExtRec := {
|
|
|
1045 |
XtPointer next_extension;
|
|
|
1046 |
XrmQuark record_type;
|
|
|
1047 |
long version;
|
|
|
1048 |
Cardinal record_size;
|
|
|
1049 |
XtInitProc initializePrehook;
|
|
|
1050 |
XtSetValuesFunc setValuesPrehook;
|
|
|
1051 |
XtInitProc initializePosthook;
|
|
|
1052 |
XtSetValuesFunc setValuesPosthook;
|
|
|
1053 |
WidgetClass secondaryObjectClass;
|
|
|
1054 |
XtInitProc secondaryObjectCreate;
|
|
|
1055 |
XmGetSecResDataFunc getSecResData;
|
|
|
1056 |
unsigned char flags[32];
|
|
|
1057 |
XtArgsProc getValuesPrehook;
|
|
|
1058 |
XtArgsProc getValuesPosthook;
|
|
|
1059 |
XtWidgetClassProc classPartInitPrehook;
|
|
|
1060 |
XtWidgetClassProc classPartInitPosthook;
|
|
|
1061 |
XtResourceList ext_resources;
|
|
|
1062 |
XtResourceList compiled_ext_resources;
|
|
|
1063 |
Cardinal num_ext_resources;
|
|
|
1064 |
Boolean use_sub_resources;
|
|
|
1065 |
XmWidgetNavigableProc widgetNavigable;
|
|
|
1066 |
XmFocusChangeProc focusChange;
|
|
|
1067 |
XmWrapperData wrapperData;
|
|
|
1068 |
};
|
|
|
1069 |
|
|
|
1070 |
+TYPEDEF _XmBaseClassExtRec XmBaseClassExtRec;
|
|
|
1071 |
+TYPEDEF XmBaseClassExtRec *XmBaseClassExt;
|
|
|
1072 |
|
|
|
1073 |
+FIELD (struct) _XmWidgetExtDataRec := {
|
|
|
1074 |
Widget widget;
|
|
|
1075 |
Widget reqWidget;
|
|
|
1076 |
Widget oldWidget;
|
|
|
1077 |
};
|
|
|
1078 |
|
|
|
1079 |
+TYPEDEF _XmWidgetExtDataRec XmWidgetExtDataRec;
|
|
|
1080 |
+TYPEDEF XmWidgetExtDataRec *XmWidgetExtData;
|
|
|
1081 |
|
|
|
1082 |
+EXP lvalue XrmQuark XmQmotif;
|
|
|
1083 |
+EXP lvalue int _XmInheritClass;
|
|
|
1084 |
|
|
|
1085 |
+DEFINE _XmBCEPTR(wc) %% ((XmBaseClassExt *)(&(((WidgetClass)(wc))->core_class.extension))) %%;
|
|
|
1086 |
+DEFINE _XmBCE(wc) %% ((XmBaseClassExt)(((WidgetClass)(wc))->core_class.extension)) %%;
|
|
|
1087 |
+DEFINE _XmGetBaseClassExtPtr(wc, owner) %% ((_XmBCE(wc) && (((_XmBCE(wc))->record_type) == owner)) ? _XmBCEPTR(wc) : ((XmBaseClassExt *) _XmGetClassExtensionPtr(((XmGenericClassExt *) _XmBCEPTR( wc)), owner))) %%;
|
|
|
1088 |
|
|
|
1089 |
+DEFINE _XmGetFlagsBit(field, bit) %% ((field[ (bit >> 3) ]) & (1 << (bit & 0x07))) %%;
|
|
|
1090 |
|
|
|
1091 |
+DEFINE _XmSetFlagsBit(field, bit) %% (field[ (bit >> 3) ] |= (1 << (bit & 0x07))) %%;
|
|
|
1092 |
|
|
|
1093 |
+DEFINE _XmFastSubclassInit(wc, bit_field) %% {XmBaseClassExt * _Xm_fastPtr;if(_Xm_fastPtr = _XmGetBaseClassExtPtr( wc, XmQmotif)) _XmSetFlagsBit((*_Xm_fastPtr)->flags, bit_field) ;} %%;
|
|
|
1094 |
|
|
|
1095 |
+DEFINE _XmIsFastSubclass(wc, bit) %% (_XmGetFlagsBit( ((*_XmGetBaseClassExtPtr((wc),XmQmotif))->flags), bit) ? TRUE : FALSE) %%;
|
|
|
1096 |
|
|
|
1097 |
*/
|
|
|
1098 |
|
|
|
1099 |
|
|
|
1100 |
/*
|
|
|
1101 |
* Replacement defines for fast subclass operations
|
|
|
1102 |
*/
|
|
|
1103 |
|
|
|
1104 |
%%
|
|
|
1105 |
|
|
|
1106 |
#undef XmIsCascadeButton
|
|
|
1107 |
#define XmIsCascadeButton(w) \
|
|
|
1108 |
(_XmIsFastSubclass(XtClass(w), XmCASCADE_BUTTON_BIT))
|
|
|
1109 |
|
|
|
1110 |
#undef XmIsCascadeButtonGadget
|
|
|
1111 |
#define XmIsCascadeButtonGadget(w) \
|
|
|
1112 |
(_XmIsFastSubclass(XtClass(w), XmCASCADE_BUTTON_GADGET_BIT))
|
|
|
1113 |
|
|
|
1114 |
#undef XmIsCommandBox
|
|
|
1115 |
#define XmIsCommandBox(w) \
|
|
|
1116 |
(_XmIsFastSubclass(XtClass(w), XmCOMMAND_BOX_BIT))
|
|
|
1117 |
|
|
|
1118 |
#undef XmIsDialogShell
|
|
|
1119 |
#define XmIsDialogShell(w) \
|
|
|
1120 |
(_XmIsFastSubclass(XtClass(w), XmDIALOG_SHELL_BIT))
|
|
|
1121 |
|
|
|
1122 |
#undef XmIsDisplay
|
|
|
1123 |
#define XmIsDisplay(w) \
|
|
|
1124 |
(_XmIsFastSubclass(XtClass(w), XmDISPLAY_BIT))
|
|
|
1125 |
|
|
|
1126 |
#undef XmIsList
|
|
|
1127 |
#define XmIsList(w) \
|
|
|
1128 |
(_XmIsFastSubclass(XtClass(w), XmLIST_BIT))
|
|
|
1129 |
|
|
|
1130 |
#undef XmIsForm
|
|
|
1131 |
#define XmIsForm(w) \
|
|
|
1132 |
(_XmIsFastSubclass(XtClass(w), XmFORM_BIT))
|
|
|
1133 |
|
|
|
1134 |
#undef XmIsTextField
|
|
|
1135 |
#define XmIsTextField(w) \
|
|
|
1136 |
(_XmIsFastSubclass(XtClass(w), XmTEXT_FIELD_BIT))
|
|
|
1137 |
|
|
|
1138 |
#undef XmIsGadget
|
|
|
1139 |
#define XmIsGadget(w) \
|
|
|
1140 |
(_XmIsFastSubclass(XtClass(w), XmGADGET_BIT))
|
|
|
1141 |
|
|
|
1142 |
#undef XmIsLabel
|
|
|
1143 |
#define XmIsLabel(w) \
|
|
|
1144 |
(_XmIsFastSubclass(XtClass(w), XmLABEL_BIT))
|
|
|
1145 |
|
|
|
1146 |
#undef XmIsLabelGadget
|
|
|
1147 |
#define XmIsLabelGadget(w) \
|
|
|
1148 |
(_XmIsFastSubclass(XtClass(w), XmLABEL_GADGET_BIT))
|
|
|
1149 |
|
|
|
1150 |
#undef XmIsMainWindow
|
|
|
1151 |
#define XmIsMainWindow(w) \
|
|
|
1152 |
(_XmIsFastSubclass(XtClass(w), XmMAIN_WINDOW_BIT))
|
|
|
1153 |
|
|
|
1154 |
#undef XmIsManager
|
|
|
1155 |
#define XmIsManager(w) \
|
|
|
1156 |
(_XmIsFastSubclass(XtClass(w), XmMANAGER_BIT))
|
|
|
1157 |
|
|
|
1158 |
#undef XmIsMenuShell
|
|
|
1159 |
#define XmIsMenuShell(w) \
|
|
|
1160 |
(_XmIsFastSubclass(XtClass(w), XmMENU_SHELL_BIT))
|
|
|
1161 |
|
|
|
1162 |
#undef XmIsDrawnButton
|
|
|
1163 |
#define XmIsDrawnButton(w) \
|
|
|
1164 |
(_XmIsFastSubclass(XtClass(w), XmDRAWN_BUTTON_BIT))
|
|
|
1165 |
|
|
|
1166 |
#undef XmIsPrimitive
|
|
|
1167 |
#define XmIsPrimitive(w) \
|
|
|
1168 |
(_XmIsFastSubclass(XtClass(w), XmPRIMITIVE_BIT))
|
|
|
1169 |
|
|
|
1170 |
#undef XmIsPushButton
|
|
|
1171 |
#define XmIsPushButton(w) \
|
|
|
1172 |
(_XmIsFastSubclass(XtClass(w), XmPUSH_BUTTON_BIT))
|
|
|
1173 |
|
|
|
1174 |
#undef XmIsPushButtonGadget
|
|
|
1175 |
#define XmIsPushButtonGadget(w) \
|
|
|
1176 |
(_XmIsFastSubclass(XtClass(w), XmPUSH_BUTTON_GADGET_BIT))
|
|
|
1177 |
|
|
|
1178 |
#undef XmIsRowColumn
|
|
|
1179 |
#define XmIsRowColumn(w) \
|
|
|
1180 |
(_XmIsFastSubclass(XtClass(w), XmROW_COLUMN_BIT))
|
|
|
1181 |
|
|
|
1182 |
#undef XmIsScreen
|
|
|
1183 |
#define XmIsScreen(w) \
|
|
|
1184 |
(_XmIsFastSubclass(XtClass(w), XmSCREEN_BIT))
|
|
|
1185 |
|
|
|
1186 |
#undef XmIsScrollBar
|
|
|
1187 |
#define XmIsScrollBar(w) \
|
|
|
1188 |
(_XmIsFastSubclass(XtClass(w), XmSCROLL_BAR_BIT))
|
|
|
1189 |
|
|
|
1190 |
#undef XmIsScrolledWindow
|
|
|
1191 |
#define XmIsScrolledWindow(w) \
|
|
|
1192 |
(_XmIsFastSubclass(XtClass(w), XmSCROLLED_WINDOW_BIT))
|
|
|
1193 |
|
|
|
1194 |
#undef XmIsSelectionBox
|
|
|
1195 |
#define XmIsSelectionBox(w) \
|
|
|
1196 |
(_XmIsFastSubclass(XtClass(w), XmSELECTION_BOX_BIT))
|
|
|
1197 |
|
|
|
1198 |
#undef XmIsSeparator
|
|
|
1199 |
#define XmIsSeparator(w) \
|
|
|
1200 |
(_XmIsFastSubclass(XtClass(w), XmSEPARATOR_BIT))
|
|
|
1201 |
|
|
|
1202 |
#undef XmIsSeparatorGadget
|
|
|
1203 |
#define XmIsSeparatorGadget(w) \
|
|
|
1204 |
(_XmIsFastSubclass(XtClass(w), XmSEPARATOR_GADGET_BIT))
|
|
|
1205 |
|
|
|
1206 |
#undef XmIsText
|
|
|
1207 |
#define XmIsText(w) \
|
|
|
1208 |
(_XmIsFastSubclass(XtClass(w), XmTEXT_BIT))
|
|
|
1209 |
|
|
|
1210 |
#undef XmIsToggleButton
|
|
|
1211 |
#define XmIsToggleButton(w) \
|
|
|
1212 |
(_XmIsFastSubclass(XtClass(w), XmTOGGLE_BUTTON_BIT))
|
|
|
1213 |
|
|
|
1214 |
#undef XmIsToggleButtonGadget
|
|
|
1215 |
#define XmIsToggleButtonGadget(w) \
|
|
|
1216 |
(_XmIsFastSubclass(XtClass(w), XmTOGGLE_BUTTON_GADGET_BIT))
|
|
|
1217 |
|
|
|
1218 |
#undef XmIsArrowButton
|
|
|
1219 |
#define XmIsArrowButton(w) \
|
|
|
1220 |
(_XmIsFastSubclass(XtClass(w), XmARROW_BUTTON_BIT))
|
|
|
1221 |
|
|
|
1222 |
#undef XmIsArrowButtonGadget
|
|
|
1223 |
#define XmIsArrowButtonGadget(w) \
|
|
|
1224 |
(_XmIsFastSubclass(XtClass(w), XmARROW_BUTTON_GADGET_BIT))
|
|
|
1225 |
|
|
|
1226 |
#undef XmIsBulletinBoard
|
|
|
1227 |
#define XmIsBulletinBoard(w) \
|
|
|
1228 |
(_XmIsFastSubclass(XtClass(w), XmBULLETIN_BOARD_BIT))
|
|
|
1229 |
|
|
|
1230 |
#undef XmIsDrawingArea
|
|
|
1231 |
#define XmIsDrawingArea(w) \
|
|
|
1232 |
(_XmIsFastSubclass(XtClass(w), XmDRAWING_AREA_BIT))
|
|
|
1233 |
|
|
|
1234 |
#undef XmIsFileSelectionBox
|
|
|
1235 |
#define XmIsFileSelectionBox(w) \
|
|
|
1236 |
(_XmIsFastSubclass(XtClass(w), XmFILE_SELECTION_BOX_BIT))
|
|
|
1237 |
|
|
|
1238 |
#undef XmIsFrame
|
|
|
1239 |
#define XmIsFrame(w) \
|
|
|
1240 |
(_XmIsFastSubclass(XtClass(w), XmFRAME_BIT))
|
|
|
1241 |
|
|
|
1242 |
#undef XmIsMessageBox
|
|
|
1243 |
#define XmIsMessageBox(w) \
|
|
|
1244 |
(_XmIsFastSubclass(XtClass(w), XmMESSAGE_BOX_BIT))
|
|
|
1245 |
|
|
|
1246 |
#undef XmIsSash
|
|
|
1247 |
#define XmIsSash(w) \
|
|
|
1248 |
(_XmIsFastSubclass(XtClass(w), XmSASH_BIT))
|
|
|
1249 |
|
|
|
1250 |
#undef XmIsScale
|
|
|
1251 |
#define XmIsScale(w) \
|
|
|
1252 |
(_XmIsFastSubclass(XtClass(w), XmSCALE_BIT))
|
|
|
1253 |
|
|
|
1254 |
#undef XmIsPanedWindow
|
|
|
1255 |
#define XmIsPanedWindow(w) \
|
|
|
1256 |
(_XmIsFastSubclass(XtClass(w), XmPANED_WINDOW_BIT))
|
|
|
1257 |
|
|
|
1258 |
%%
|