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 |
/* SCO CID (IXI) BaseClassP.h,v 1.1 1996/08/08 14:12:13 wendland Exp */
|
|
|
27 |
|
|
|
28 |
%%
|
|
|
29 |
#ifndef __MOTIF_P_HEADERS
|
|
|
30 |
#error Unexpected access to Motif P headers
|
|
|
31 |
#endif
|
|
|
32 |
%%
|
|
|
33 |
|
|
|
34 |
+USE "motif/1_2", "Xm/XmP.h";
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
+DEFINE _XmGetFlagsBit(field, bit) %% ((field[ (bit >> 3) ]) & (1 << (bit & 0x07))) %%;
|
|
|
38 |
+DEFINE _XmSetFlagsBit(field, bit) %% (field[ (bit >> 3) ] |= (1 << (bit & 0x07))) %%;
|
|
|
39 |
|
|
|
40 |
+DEFINE _XmFastSubclassInit(wc, bit_field) %% {XmBaseClassExt * _Xm_fastPtr;if(_Xm_fastPtr = _XmGetBaseClassExtPtr( wc, XmQmotif)) _XmSetFlagsBit((*_Xm_fastPtr)->flags, bit_field) ;} %%;
|
|
|
41 |
|
|
|
42 |
+DEFINE _XmIsFastSubclass(wc, bit) %% (_XmGetFlagsBit( ((*_XmGetBaseClassExtPtr((wc),XmQmotif))->flags), bit) ? TRUE : FALSE) %%;
|
|
|
43 |
|
|
|
44 |
+CONST long XmBaseClassExtVersion;
|
|
|
45 |
|
|
|
46 |
+TYPEDEF Cardinal (*XmGetSecResDataFunc)(WidgetClass, XmSecondaryResourceData **);
|
|
|
47 |
|
|
|
48 |
+FIELD (struct) _XmObjectClassExtRec := {
|
|
|
49 |
|
|
|
50 |
XtPointer next_extension;
|
|
|
51 |
XrmQuark record_type;
|
|
|
52 |
long version;
|
|
|
53 |
Cardinal record_size;
|
|
|
54 |
};
|
|
|
55 |
|
|
|
56 |
+TYPEDEF _XmObjectClassExtRec XmObjectClassExtRec;
|
|
|
57 |
+TYPEDEF _XmObjectClassExtRec *XmObjectClassExt;
|
|
|
58 |
|
|
|
59 |
+FIELD (struct) _XmGenericClassExtRec := {
|
|
|
60 |
|
|
|
61 |
XtPointer next_extension;
|
|
|
62 |
XrmQuark record_type;
|
|
|
63 |
long version;
|
|
|
64 |
Cardinal record_size;
|
|
|
65 |
};
|
|
|
66 |
|
|
|
67 |
+TYPEDEF _XmGenericClassExtRec XmGenericClassExtRec;
|
|
|
68 |
+TYPEDEF _XmGenericClassExtRec *XmGenericClassExt;
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
+TYPE (struct) _XmWrapperDataRec;
|
|
|
72 |
|
|
|
73 |
+FIELD (struct) _XmWrapperDataRec := {
|
|
|
74 |
|
|
|
75 |
_XmWrapperDataRec *next;
|
|
|
76 |
WidgetClass widgetClass;
|
|
|
77 |
XtInitProc initializeLeaf;
|
|
|
78 |
XtSetValuesFunc setValuesLeaf;
|
|
|
79 |
XtArgsProc getValuesLeaf;
|
|
|
80 |
XtRealizeProc realize;
|
|
|
81 |
XtWidgetClassProc classPartInitLeaf;
|
|
|
82 |
XtWidgetProc resize;
|
|
|
83 |
XtGeometryHandler geometry_manager;
|
|
|
84 |
Cardinal init_depth;
|
|
|
85 |
};
|
|
|
86 |
|
|
|
87 |
+TYPEDEF _XmWrapperDataRec XmWrapperDataRec;
|
|
|
88 |
+TYPEDEF _XmWrapperDataRec *XmWrapperData;
|
|
|
89 |
|
|
|
90 |
+FIELD (struct) _XmBaseClassExtRec := {
|
|
|
91 |
|
|
|
92 |
XtPointer next_extension;
|
|
|
93 |
XrmQuark record_type;
|
|
|
94 |
long version;
|
|
|
95 |
Cardinal record_size;
|
|
|
96 |
XtInitProc initializePrehook;
|
|
|
97 |
XtSetValuesFunc setValuesPrehook;
|
|
|
98 |
XtInitProc initializePosthook;
|
|
|
99 |
XtSetValuesFunc setValuesPosthook;
|
|
|
100 |
WidgetClass secondaryObjectClass;
|
|
|
101 |
XtInitProc secondaryObjectCreate;
|
|
|
102 |
XmGetSecResDataFunc getSecResData;
|
|
|
103 |
unsigned char flags[32];
|
|
|
104 |
XtArgsProc getValuesPrehook;
|
|
|
105 |
XtArgsProc getValuesPosthook;
|
|
|
106 |
XtWidgetClassProc classPartInitPrehook;
|
|
|
107 |
XtWidgetClassProc classPartInitPosthook;
|
|
|
108 |
XtResourceList ext_resources;
|
|
|
109 |
XtResourceList compiled_ext_resources;
|
|
|
110 |
Cardinal num_ext_resources;
|
|
|
111 |
Boolean use_sub_resources;
|
|
|
112 |
XmWidgetNavigableProc widgetNavigable;
|
|
|
113 |
XmFocusChangeProc focusChange;
|
|
|
114 |
XmWrapperData wrapperData;
|
|
|
115 |
};
|
|
|
116 |
|
|
|
117 |
+TYPEDEF _XmBaseClassExtRec XmBaseClassExtRec;
|
|
|
118 |
+TYPEDEF _XmBaseClassExtRec *XmBaseClassExt;
|
|
|
119 |
|
|
|
120 |
+MACRO XmBaseClassExt * _XmBCEPTR(WidgetClass);
|
|
|
121 |
+MACRO XmBaseClassExt _XmBCE(WidgetClass);
|
|
|
122 |
+MACRO XmBaseClassExt * _XmGetBaseClassExtPtr(WidgetClass, XrmQuark);
|
|
|
123 |
|
|
|
124 |
+FIELD (struct) _XmWidgetExtDataRec := {
|
|
|
125 |
|
|
|
126 |
Widget widget;
|
|
|
127 |
Widget reqWidget;
|
|
|
128 |
Widget oldWidget;
|
|
|
129 |
};
|
|
|
130 |
|
|
|
131 |
+TYPEDEF _XmWidgetExtDataRec XmWidgetExtDataRec;
|
|
|
132 |
+TYPEDEF _XmWidgetExtDataRec *XmWidgetExtData;
|
|
|
133 |
|
|
|
134 |
+EXP XrmQuark XmQmotif;
|
|
|
135 |
+EXP int _XmInheritClass;
|
|
|
136 |
+EXP XmBaseClassExt *_Xm_fastPtr;
|
|
|
137 |
|
|
|
138 |
+FUNC Boolean _XmIsSlowSubclass( WidgetClass, unsigned int);
|
|
|
139 |
+FUNC XmGenericClassExt *_XmGetClassExtensionPtr(XmGenericClassExt *, XrmQuark);
|
|
|
140 |
|
|
|
141 |
+FUNC void _XmPushWidgetExtData(Widget, XmWidgetExtData, unsigned char);
|
|
|
142 |
|
|
|
143 |
+FUNC void _XmPopWidgetExtData(Widget, XmWidgetExtData *, unsigned char);
|
|
|
144 |
|
|
|
145 |
+FUNC XmWidgetExtData _XmGetWidgetExtData(Widget, unsigned char);
|
|
|
146 |
+FUNC void _XmFreeWidgetExtData(Widget);
|
|
|
147 |
+FUNC void _XmBaseClassPartInitialize(WidgetClass);
|
|
|
148 |
+FUNC void _XmInitializeExtensions(void);
|
|
|
149 |
+FUNC Boolean _XmIsStandardMotifWidgetClass(WidgetClass);
|
|
|
150 |
+FUNC Cardinal _XmSecondaryResourceData(XmBaseClassExt, XmSecondaryResourceData **, XtPointer, String, String, XmResourceBaseProc);
|
|
|
151 |
+FUNC void _XmTransformSubResources(XtResourceList, Cardinal, XtResourceList *, Cardinal *);
|
|
|
152 |
|
|
|
153 |
|