-
Notifications
You must be signed in to change notification settings - Fork 13
/
udefs.hpp
256 lines (209 loc) · 6.04 KB
/
udefs.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/* ***********************************************************************
*
* udefs.hpp: declaration of the main Ubit classes
* Ubit GUI Toolkit - Version 6
* (C) 2009 | Eric Lecolinet | TELECOM ParisTech | http://www.enst.fr/~elc/ubit
*
* ***********************************************************************
* COPYRIGHT NOTICE :
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY AND WITHOUT EVEN THE
* IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
* YOU CAN REDISTRIBUTE IT AND/OR MODIFY IT UNDER THE TERMS OF THE GNU
* GENERAL PUBLIC LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION;
* EITHER VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
* SEE FILES 'COPYRIGHT' AND 'COPYING' FOR MORE DETAILS.
* ***********************************************************************/
#ifndef _udefs_hpp_
#define _udefs_hpp_ 1
#include <string>
#include <vector>
#include <list>
// <ubit/ubit_features.h> defines crucial compilation options. It is automatically
// generated by 'configure' or 'umake' (which are in the Ubit base directory).
#include <ubit/ubit_features.h>
#define UBIT5 (UBIT_VERSION_MAJOR >= 5)
#define UBIT6 (UBIT_VERSION_MINOR >= 6)
#define null NULL
namespace ubit {
typedef char UChar;
class UObject; // base class of all objects
class UNode; // base class of all objects that can be added to the scene graph
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// elements (groups, boxes and widgets)
class UElem; // base class of element nodes (derives from UNode)
class UBox;
class ULabel;
class UButton;
class UItem;
class UTextfield;
class UTextarea;
class UFlowbox;
class UCardbox;
class UCombobox;
class UListbox;
class UAlertbox;
class UFilebox;
class UDocbox;
class UTreebox;
class UTreenode;
class UPalette;
class USlider;
class UScrollbar;
class UScrollpane;
class UZoompane;
class UTable;
class UDoc;
class UGlcanvas;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// windows and menus (derive from UBox)
class UWin;
class UFrame;
class UDialog;
class UMenubar;
class UMenu;
class UPopmenu;
class UPiemenu;
class UCtlmenu;
class USubwin;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 3D widgets (derive from UBox)
class U3Dcanvas;
class U3Dbox;
class U3Dwin;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// data (strings, images, pixmaps, symbols)
class UData; // base class of data nodes (derives from UNode)
class UStr;
class UIma;
class UPix;
class USymbol;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// attributes
class UAttr; // base class of attributes nodes (derives from UNode)
class UAttrList;
class UCall; // callback objects
class UColor;
class UAlpha;
class UBackground;
class UBorder;
class UFont;
class UFontFamily;
class UFontMetrics;
class UFontDesc;
class UPos;
class U3Dpos;
class UScale;
class USize;
class UPadding;
class UOrient;
class UHalign;
class UValign;
class UHspacing;
class UVspacing;
class UCursor;
class UChoice;
class UEdit;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// application, display and global configuration
class UAppli;
class UDisp;
class UConf;
class UOption;
class USelection;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// event conditions
class UCond;
class UOn;
class UFlag;
class UFlagdef;
class UPropdef;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// events
class UEvent;
class UInputEvent;
class UMouseEvent;
class UKeyEvent;
class UWheelEvent;
class UViewEvent;
class UPaintEvent;
class UResizeEvent;
class UWinEvent;
class UUserEvent;
class UMessageEvent;
class UTimerEvent;
class USysWMEvent;
class UEventFlow;
class UKey; // key codes
class UMod; // modifier masks
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// geometry
class UUnit;
class ULength;
class UPoint;
class UDimension;
class UShape;
class ULine;
class URect;
class UEllipse;
class UArc;
class UPolygon;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// graphics & rendering
class UGraph;
class URgba;
class UUpdate;
class URenderContext;
class UGlcontext;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// errors
class UError;
class UErrorHandler;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// numbers
class UInt;
class UFloat;
class UDouble;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// metaclasses
class UClass;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// view and styles
class UView;
class UViewStyle;
class UStyle;
class UStyleSheet;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// arglists
class UArgs;
class UChild;
class UParent;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// file and network
class UFileInfo;
class UFileDir;
class USocket;
class USource;
class UTimer;
class UMessage;
class UMessagePort;
class UMessagePortMap;
class UMService;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// implementation
class UUpdateContext;
class UWinUpdateContext;
class UBehavior;
class UWinImpl;
class USoftwinImpl;
class UHardwinImpl;
class UHardIma;
class UHardPix;
class UHardFont;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/* compatibility with Ubit5
typedef UNode UBrick;
typedef UAttr UProp;
typedef UBackground UBgcolor;
*/
}
#endif