File: Layout.h

package info (click to toggle)
gridengine 6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 51,532 kB
  • ctags: 51,172
  • sloc: ansic: 418,155; java: 37,080; sh: 22,593; jsp: 7,699; makefile: 5,292; csh: 4,244; xml: 2,901; cpp: 2,086; perl: 1,895; tcl: 1,188; lisp: 669; ruby: 642; yacc: 393; lex: 266
file content (367 lines) | stat: -rw-r--r-- 10,732 bytes parent folder | download | duplicates (3)
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/* 
 * Motif Tools Library, Version 3.1
 * $Id$
 * 
 * Written by David Flanagan.
 * Copyright (c) 1992-2001 by David Flanagan.
 * All Rights Reserved.  See the file COPYRIGHT for details.
 * This is open source software.  See the file LICENSE for details.
 * There is no warranty for this software.  See NO_WARRANTY for details.
 *
 * $Log$
 * Revision 1.1.1.1  2001/07/18 11:06:02  root
 * Initial checkin.
 *
 * Revision 1.2  2001/06/12 16:25:28  andre
 * *** empty log message ***
 *
 *
 */

#ifndef _XmtLayout_h
#define _XmtLayout_h

#include <Xm/BulletinB.h>

typedef struct _XmtLayoutClassRec*       XmtLayoutWidgetClass;
typedef struct _XmtLayoutRec*            XmtLayoutWidget;

externalref WidgetClass xmtLayoutWidgetClass;

#include <Xmt/LayoutG.h>

typedef enum {
    XmtLayoutFilled=0,
    XmtLayoutFlushLeft=1,
    XmtLayoutFlushTop=1,
    XmtLayoutFlushRight=2,
    XmtLayoutFlushBottom=2,
    XmtLayoutCentered=3
} XmtLayoutJustification;

typedef enum {
    XmtLayoutTop,
    XmtLayoutBottom,
    XmtLayoutLeft,
    XmtLayoutRight
} XmtLayoutEdge;

typedef enum {
    XmtLayoutFrameNone,
    XmtLayoutFrameBox,
    XmtLayoutFrameLeft,
    XmtLayoutFrameRight,
    XmtLayoutFrameTop,
    XmtLayoutFrameBottom
} XmtLayoutFrameType;

typedef enum {
    XmtLayoutFrameShadowIn,
    XmtLayoutFrameShadowOut,
    XmtLayoutFrameEtchedIn,
    XmtLayoutFrameEtchedOut,
    XmtLayoutFrameSingleLine,
    XmtLayoutFrameDoubleLine
} XmtLayoutFrameLineType;

typedef enum {
    XmtLayoutFrameInside,
    XmtLayoutFrameThrough,
    XmtLayoutFrameOutside
} XmtLayoutFramePosition;

/*
 * This enumerated type is used by the XmtLayoutBox gadget to control
 * how it spaces items in a row or column
 */
typedef enum {
    XmtLayoutSpaceNone,
    XmtLayoutSpaceEven,
    XmtLayoutSpaceLREven,
    XmtLayoutSpaceInterval,
    XmtLayoutSpaceLCR,
    XmtLayoutSpaceLTabbed,
    XmtLayoutSpaceCTabbed,  /* thanks to F. Sullivan Segal for this one */
    XmtLayoutSpaceRTabbed
} XmtLayoutSpaceType;

typedef enum {
    XmtLayoutPoints,       /* 1/72 of an inch */
    XmtLayoutInches,       /* 25.4 millimeters */
    XmtLayoutMillimeters,  /* depends on display resolution */
    XmtLayoutEms,          /* width of 'M' in widget font */
    XmtLayoutEns           /* 1/2 of an em */
} XmtLayoutUnitType;

externalref _Xconst char XmtLayoutStrings[];
#ifndef XmtNbackground
#define XmtNbackground ((char*)&XmtLayoutStrings[0])
#endif
#ifndef XmtNbitmap
#define XmtNbitmap ((char*)&XmtLayoutStrings[11])
#endif
#ifndef XmtNbitmask
#define XmtNbitmask ((char*)&XmtLayoutStrings[18])
#endif
#ifndef XmtNdebugLayout
#define XmtNdebugLayout ((char*)&XmtLayoutStrings[26])
#endif
#ifndef XmtNdefaultSpacing
#define XmtNdefaultSpacing ((char*)&XmtLayoutStrings[38])
#endif
#ifndef XmtNequal
#define XmtNequal ((char*)&XmtLayoutStrings[53])
#endif
#ifndef XmtNfont
#define XmtNfont ((char*)&XmtLayoutStrings[59])
#endif
#ifndef XmtNfontList
#define XmtNfontList ((char*)&XmtLayoutStrings[64])
#endif
#ifndef XmtNforeground
#define XmtNforeground ((char*)&XmtLayoutStrings[73])
#endif
#ifndef XmtNitemStretch
#define XmtNitemStretch ((char*)&XmtLayoutStrings[84])
#endif
#ifndef XmtNlabel
#define XmtNlabel ((char*)&XmtLayoutStrings[96])
#endif
#ifndef XmtNlabelString
#define XmtNlabelString ((char*)&XmtLayoutStrings[102])
#endif
#ifndef XmtNlayout
#define XmtNlayout ((char*)&XmtLayoutStrings[114])
#endif
#ifndef XmtNlayoutAfter
#define XmtNlayoutAfter ((char*)&XmtLayoutStrings[121])
#endif
#ifndef XmtNlayoutAllowResize
#define XmtNlayoutAllowResize ((char*)&XmtLayoutStrings[133])
#endif
#ifndef XmtNlayoutBefore
#define XmtNlayoutBefore ((char*)&XmtLayoutStrings[151])
#endif
#ifndef XmtNlayoutCaption
#define XmtNlayoutCaption ((char*)&XmtLayoutStrings[164])
#endif
#ifndef XmtNlayoutCaptionAlignment
#define XmtNlayoutCaptionAlignment ((char*)&XmtLayoutStrings[178])
#endif
#ifndef XmtNlayoutCaptionJustification
#define XmtNlayoutCaptionJustification ((char*)&XmtLayoutStrings[201])
#endif
#ifndef XmtNlayoutCaptionMargin
#define XmtNlayoutCaptionMargin ((char*)&XmtLayoutStrings[228])
#endif
#ifndef XmtNlayoutCaptionPosition
#define XmtNlayoutCaptionPosition ((char*)&XmtLayoutStrings[248])
#endif
#ifndef XmtNlayoutFrameLineType
#define XmtNlayoutFrameLineType ((char*)&XmtLayoutStrings[270])
#endif
#ifndef XmtNlayoutFrameMargin
#define XmtNlayoutFrameMargin ((char*)&XmtLayoutStrings[290])
#endif
#ifndef XmtNlayoutFramePosition
#define XmtNlayoutFramePosition ((char*)&XmtLayoutStrings[308])
#endif
#ifndef XmtNlayoutFrameThickness
#define XmtNlayoutFrameThickness ((char*)&XmtLayoutStrings[328])
#endif
#ifndef XmtNlayoutFrameType
#define XmtNlayoutFrameType ((char*)&XmtLayoutStrings[349])
#endif
#ifndef XmtNlayoutHeight
#define XmtNlayoutHeight ((char*)&XmtLayoutStrings[365])
#endif
#ifndef XmtNlayoutIn
#define XmtNlayoutIn ((char*)&XmtLayoutStrings[378])
#endif
#ifndef XmtNlayoutJustification
#define XmtNlayoutJustification ((char*)&XmtLayoutStrings[387])
#endif
#ifndef XmtNlayoutMarginHeight
#define XmtNlayoutMarginHeight ((char*)&XmtLayoutStrings[407])
#endif
#ifndef XmtNlayoutMarginWidth
#define XmtNlayoutMarginWidth ((char*)&XmtLayoutStrings[426])
#endif
#ifndef XmtNlayoutPosition
#define XmtNlayoutPosition ((char*)&XmtLayoutStrings[444])
#endif
#ifndef XmtNlayoutSensitive
#define XmtNlayoutSensitive ((char*)&XmtLayoutStrings[459])
#endif
#ifndef XmtNlayoutShrinkability
#define XmtNlayoutShrinkability ((char*)&XmtLayoutStrings[475])
#endif
#ifndef XmtNlayoutStretchability
#define XmtNlayoutStretchability ((char*)&XmtLayoutStrings[495])
#endif
#ifndef XmtNlayoutWidth
#define XmtNlayoutWidth ((char*)&XmtLayoutStrings[516])
#endif
#ifndef XmtNorientation
#define XmtNorientation ((char*)&XmtLayoutStrings[528])
#endif
#ifndef XmtNpixmap
#define XmtNpixmap ((char*)&XmtLayoutStrings[540])
#endif
#ifndef XmtNspace
#define XmtNspace ((char*)&XmtLayoutStrings[547])
#endif
#ifndef XmtNspaceStretch
#define XmtNspaceStretch ((char*)&XmtLayoutStrings[553])
#endif
#ifndef XmtNspaceType
#define XmtNspaceType ((char*)&XmtLayoutStrings[566])
#endif
#ifndef XmtCBitmap
#define XmtCBitmap ((char*)&XmtLayoutStrings[576])
#endif
#ifndef XmtCBitmask
#define XmtCBitmask ((char*)&XmtLayoutStrings[583])
#endif
#ifndef XmtCDebugLayout
#define XmtCDebugLayout ((char*)&XmtLayoutStrings[591])
#endif
#ifndef XmtCDefaultSpacing
#define XmtCDefaultSpacing ((char*)&XmtLayoutStrings[603])
#endif
#ifndef XmtCEqual
#define XmtCEqual ((char*)&XmtLayoutStrings[618])
#endif
#ifndef XmtCItemStretch
#define XmtCItemStretch ((char*)&XmtLayoutStrings[624])
#endif
#ifndef XmtCLayout
#define XmtCLayout ((char*)&XmtLayoutStrings[636])
#endif
#ifndef XmtCLayoutAfter
#define XmtCLayoutAfter ((char*)&XmtLayoutStrings[643])
#endif
#ifndef XmtCLayoutAllowResize
#define XmtCLayoutAllowResize ((char*)&XmtLayoutStrings[655])
#endif
#ifndef XmtCLayoutBefore
#define XmtCLayoutBefore ((char*)&XmtLayoutStrings[673])
#endif
#ifndef XmtCLayoutCaption
#define XmtCLayoutCaption ((char*)&XmtLayoutStrings[686])
#endif
#ifndef XmtCLayoutCaptionAlignment
#define XmtCLayoutCaptionAlignment ((char*)&XmtLayoutStrings[700])
#endif
#ifndef XmtCLayoutCaptionJustification
#define XmtCLayoutCaptionJustification ((char*)&XmtLayoutStrings[723])
#endif
#ifndef XmtCLayoutCaptionMargin
#define XmtCLayoutCaptionMargin ((char*)&XmtLayoutStrings[750])
#endif
#ifndef XmtCLayoutCaptionPosition
#define XmtCLayoutCaptionPosition ((char*)&XmtLayoutStrings[770])
#endif
#ifndef XmtCLayoutFrameLineType
#define XmtCLayoutFrameLineType ((char*)&XmtLayoutStrings[792])
#endif
#ifndef XmtCLayoutFrameMargin
#define XmtCLayoutFrameMargin ((char*)&XmtLayoutStrings[812])
#endif
#ifndef XmtCLayoutFramePosition
#define XmtCLayoutFramePosition ((char*)&XmtLayoutStrings[830])
#endif
#ifndef XmtCLayoutFrameThickness
#define XmtCLayoutFrameThickness ((char*)&XmtLayoutStrings[850])
#endif
#ifndef XmtCLayoutFrameType
#define XmtCLayoutFrameType ((char*)&XmtLayoutStrings[871])
#endif
#ifndef XmtCLayoutHeight
#define XmtCLayoutHeight ((char*)&XmtLayoutStrings[887])
#endif
#ifndef XmtCLayoutIn
#define XmtCLayoutIn ((char*)&XmtLayoutStrings[900])
#endif
#ifndef XmtCLayoutJustification
#define XmtCLayoutJustification ((char*)&XmtLayoutStrings[909])
#endif
#ifndef XmtCLayoutMarginHeight
#define XmtCLayoutMarginHeight ((char*)&XmtLayoutStrings[929])
#endif
#ifndef XmtCLayoutMarginWidth
#define XmtCLayoutMarginWidth ((char*)&XmtLayoutStrings[948])
#endif
#ifndef XmtCLayoutPosition
#define XmtCLayoutPosition ((char*)&XmtLayoutStrings[966])
#endif
#ifndef XmtCLayoutSensitive
#define XmtCLayoutSensitive ((char*)&XmtLayoutStrings[981])
#endif
#ifndef XmtCLayoutShrinkability
#define XmtCLayoutShrinkability ((char*)&XmtLayoutStrings[997])
#endif
#ifndef XmtCLayoutStretchability
#define XmtCLayoutStretchability ((char*)&XmtLayoutStrings[1017])
#endif
#ifndef XmtCLayoutWidth
#define XmtCLayoutWidth ((char*)&XmtLayoutStrings[1038])
#endif
#ifndef XmtCPixmap
#define XmtCPixmap ((char*)&XmtLayoutStrings[1050])
#endif
#ifndef XmtCSpace
#define XmtCSpace ((char*)&XmtLayoutStrings[1057])
#endif
#ifndef XmtCSpaceStretch
#define XmtCSpaceStretch ((char*)&XmtLayoutStrings[1063])
#endif
#ifndef XmtCSpaceType
#define XmtCSpaceType ((char*)&XmtLayoutStrings[1076])
#endif
#ifndef XmtRXmtLayoutEdge
#define XmtRXmtLayoutEdge ((char*)&XmtLayoutStrings[1086])
#endif
#ifndef XmtRXmtLayoutFrameLineType
#define XmtRXmtLayoutFrameLineType ((char*)&XmtLayoutStrings[1100])
#endif
#ifndef XmtRXmtLayoutFramePosition
#define XmtRXmtLayoutFramePosition ((char*)&XmtLayoutStrings[1123])
#endif
#ifndef XmtRXmtLayoutFrameType
#define XmtRXmtLayoutFrameType ((char*)&XmtLayoutStrings[1146])
#endif
#ifndef XmtRXmtLayoutJustification
#define XmtRXmtLayoutJustification ((char*)&XmtLayoutStrings[1165])
#endif
#ifndef XmtRXmtLayoutSpaceType
#define XmtRXmtLayoutSpaceType ((char*)&XmtLayoutStrings[1188])
#endif

#if XmVersion >= 2000
#ifndef XmtNrenderTable
#define XmtNrenderTable "renderTable"
#endif
#endif

_XFUNCPROTOBEGIN
#if NeedFunctionPrototypes
extern Widget XmtCreateLayout(Widget, String, ArgList, Cardinal);
extern Widget XmtCreateLayoutDialog(Widget, String, ArgList, Cardinal);
extern void XmtRegisterLayoutParser(void);
extern void XmtRegisterLayoutCreateMethod(void);
extern void XmtLayoutDisableLayout(Widget);
extern void XmtLayoutEnableLayout(Widget);
extern int XmtLayoutConvertSizeToPixels(Widget, double, XmtLayoutUnitType);
#else
extern Widget XmtCreateLayout();
extern Widget XmtCreateLayoutDialog();
extern void XmtRegisterLayoutParser();
extern void XmtRegisterLayoutCreateMethod();
extern void XmtLayoutDisableLayout();
extern void XmtLayoutEnableLayout();
extern int XmtLayoutConvertSizeToPixels();
#endif
_XFUNCPROTOEND    

#endif /* _XmtLayout_h */