]>
Commit | Line | Data |
---|---|---|
7bf85405 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _defs.i | |
3 | // Purpose: Definitions and stuff | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 6/24/97 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
dd9f7fea RD |
14 | // Globally turn on the autodoc feature |
15 | %feature("autodoc", "1"); // 0 == no param types, 1 == show param types | |
16 | ||
7bf85405 RD |
17 | |
18 | //--------------------------------------------------------------------------- | |
d14a1e28 | 19 | // some type definitions to simplify things for SWIG |
af309447 | 20 | |
dd9f7fea RD |
21 | // typedef int wxWindowID; |
22 | // typedef int wxCoord; | |
23 | // typedef int wxInt32; | |
24 | // typedef unsigned int wxUint32; | |
d14a1e28 RD |
25 | typedef int wxEventType; |
26 | typedef unsigned int size_t; | |
27 | typedef unsigned int time_t; | |
28 | typedef unsigned char byte; | |
29 | ||
dd9f7fea RD |
30 | #define wxWindowID int |
31 | #define wxCoord int | |
32 | #define wxInt32 int | |
33 | #define wxUint32 unsigned int | |
34 | //#define wxEventType int | |
35 | //#define size_t unsigned int | |
36 | //#define time_t unsigned int | |
37 | //#define byte unsigned char | |
38 | ||
d14a1e28 RD |
39 | |
40 | //---------------------------------------------------------------------- | |
41 | // Various SWIG macros and such | |
42 | ||
43 | #define %addtofunc %feature("addtofunc") | |
44 | #define %kwargs %feature("kwargs") | |
45 | #define %nokwargs %feature("nokwargs") | |
d14a1e28 RD |
46 | |
47 | #ifndef %shadow | |
48 | #define %shadow %insert("shadow") | |
49 | #endif | |
50 | ||
51 | #ifndef %pythoncode | |
52 | #define %pythoncode %insert("python") | |
dd9f7fea | 53 | #endif |
d14a1e28 RD |
54 | |
55 | #define WXUNUSED(x) x | |
56 | ||
57 | ||
58 | // Given the name of a wxChar (or wxString) constant in C++, make | |
59 | // a static wxString for wxPython, and also let SWIG wrap it. | |
60 | %define MAKE_CONST_WXSTRING(strname) | |
61 | %{ static const wxString wxPy##strname(wx##strname); %} | |
62 | %immutable; | |
63 | %name(strname) const wxString wxPy##strname; | |
64 | %mutable; | |
65 | %enddef | |
66 | ||
b1462dfa | 67 | |
d14a1e28 RD |
68 | // Generate code in the module init for the event types, since they may not be |
69 | // initialized yet when they are used in the static swig_const_table. | |
70 | %typemap(consttab) wxEventType; // TODO: how to prevent code inserted into the consttab? | |
71 | %typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));"; | |
72 | ||
73 | ||
dd9f7fea RD |
74 | |
75 | // Macros for the docstring and autodoc features of SWIG. | |
76 | ||
77 | // Set the docsring for the given full or partial declaration | |
78 | #define DocStr(decl, docstr) %feature("docstring") decl docstr | |
79 | ||
80 | // Set the autodoc string for a full or partial declaration | |
81 | #define DocA(decl, astr) %feature("autodoc") decl astr | |
82 | ||
83 | // Set both the autodoc and docstring for a full or partial declaration | |
84 | %define DocAStr(decl, astr, docstr) | |
85 | %feature("autodoc") decl astr; | |
86 | %feature("docstring") decl docstr | |
87 | %enddef | |
88 | ||
89 | // Set the detailed reference docs for full or partial declaration | |
90 | #define DocRef(decl, str) %feature("docref") decl str | |
91 | ||
92 | ||
93 | ||
94 | ||
95 | // Set the docstring for a decl and then define the decl too. Must use the | |
96 | // full declaration of the item. | |
97 | %define DocDeclStr(type, decl, docstr) | |
98 | %feature("docstring") decl docstr; | |
99 | type decl | |
100 | %enddef | |
101 | ||
102 | // As above, but also give the decl a new %name | |
103 | %define DocDeclStrName(type, decl, docstr, newname) | |
104 | %feature("docstring") decl docstr; | |
105 | %name(newname) type decl | |
106 | %enddef | |
107 | ||
108 | ||
109 | // Set the autodoc string for a decl and then define the decl too. Must use the | |
110 | // full declaration of the item. | |
111 | %define DocDeclA(type, decl, astr) | |
112 | %feature("autodoc") decl astr; | |
113 | type decl | |
114 | %enddef | |
115 | ||
116 | // As above, but also give the decl a new %name | |
117 | %define DocDeclAName(type, decl, astr, newname) | |
118 | %feature("autodoc") decl astr; | |
119 | %name(newname) type decl | |
120 | %enddef | |
121 | ||
122 | ||
123 | ||
124 | // Set the autodoc and the docstring for a decl and then define the decl too. | |
125 | // Must use the full declaration of the item. | |
126 | %define DocDeclAStr(type, decl, astr, docstr) | |
127 | %feature("autodoc") decl astr; | |
128 | %feature("docstring") decl docstr; | |
129 | type decl | |
130 | %enddef | |
131 | ||
132 | // As above, but also give the decl a new %name | |
133 | %define DocDeclAStrName(type, decl, astr, docstr, newname) | |
134 | %feature("autodoc") decl astr; | |
135 | %feature("docstring") decl docstr; | |
136 | %name(newname) type decl | |
137 | %enddef | |
138 | ||
139 | ||
140 | ||
141 | ||
142 | // Set the docstring for a constructor decl and then define the decl too. | |
143 | // Must use the full declaration of the item. | |
144 | %define DocCtorStr(decl, docstr) | |
145 | %feature("docstring") decl docstr; | |
146 | decl | |
147 | %enddef | |
148 | ||
149 | // As above, but also give the decl a new %name | |
150 | %define DocCtorStrName(decl, docstr, newname) | |
151 | %feature("docstring") decl docstr; | |
152 | %name(newname) decl | |
153 | %enddef | |
154 | ||
155 | ||
156 | // Set the autodoc string for a decl and then define the decl too. Must use the | |
157 | // full declaration of the item. | |
158 | %define DocCtorA(decl, astr) | |
159 | %feature("autodoc") decl astr; | |
160 | decl | |
161 | %enddef | |
162 | ||
163 | // As above, but also give the decl a new %name | |
164 | %define DocCtorAname(decl, astr, newname) | |
165 | %feature("autodoc") decl astr; | |
166 | %name(newname) decl | |
167 | %enddef | |
168 | ||
169 | ||
170 | ||
171 | // Set the autodoc and the docstring for a decl and then define the decl too. | |
172 | // Must use the full declaration of the item. | |
173 | %define DocCtorAStr(decl, astr, docstr) | |
174 | %feature("autodoc") decl astr; | |
175 | %feature("docstring") decl docstr; | |
176 | decl | |
177 | %enddef | |
178 | ||
179 | // As above, but also give the decl a new %name | |
180 | %define DocCtorAStrName(decl, astr, docstr, newname) | |
181 | %feature("autodoc") decl astr; | |
182 | %feature("docstring") decl docstr; | |
183 | %name(newname) decl | |
184 | %enddef | |
185 | ||
186 | ||
187 | ||
d14a1e28 RD |
188 | %define %newgroup |
189 | %pythoncode { | |
190 | %#--------------------------------------------------------------------------- | |
dd9f7fea | 191 | } |
d14a1e28 | 192 | %enddef |
7bf85405 RD |
193 | |
194 | //--------------------------------------------------------------------------- | |
195 | ||
196 | // General numeric #define's and etc. Making them all enums makes SWIG use the | |
197 | // real macro when making the Python Int | |
198 | ||
199 | enum { | |
d14a1e28 RD |
200 | // wxMAJOR_VERSION, |
201 | // wxMINOR_VERSION, | |
202 | // wxRELEASE_NUMBER, | |
7bf85405 | 203 | |
08127323 | 204 | wxNOT_FOUND, |
7bf85405 RD |
205 | |
206 | wxVSCROLL, | |
207 | wxHSCROLL, | |
208 | wxCAPTION, | |
209 | wxDOUBLE_BORDER, | |
210 | wxSUNKEN_BORDER, | |
211 | wxRAISED_BORDER, | |
212 | wxBORDER, | |
213 | wxSIMPLE_BORDER, | |
214 | wxSTATIC_BORDER, | |
215 | wxTRANSPARENT_WINDOW, | |
216 | wxNO_BORDER, | |
217 | wxUSER_COLOURS, | |
218 | wxNO_3D, | |
9cbf6f6e | 219 | |
7bf85405 | 220 | wxTAB_TRAVERSAL, |
1afc06c2 | 221 | wxWANTS_CHARS, |
0122b7e3 | 222 | wxPOPUP_WINDOW, |
7bf85405 | 223 | wxCENTER_FRAME, |
1afc06c2 RD |
224 | wxCENTRE_ON_SCREEN, |
225 | wxCENTER_ON_SCREEN, | |
226 | ||
7bf85405 RD |
227 | wxSTAY_ON_TOP, |
228 | wxICONIZE, | |
229 | wxMINIMIZE, | |
230 | wxMAXIMIZE, | |
9cbf6f6e | 231 | wxCLOSE_BOX, |
7bf85405 RD |
232 | wxTHICK_FRAME, |
233 | wxSYSTEM_MENU, | |
234 | wxMINIMIZE_BOX, | |
235 | wxMAXIMIZE_BOX, | |
236 | wxTINY_CAPTION_HORIZ, | |
237 | wxTINY_CAPTION_VERT, | |
238 | wxRESIZE_BOX, | |
239 | wxRESIZE_BORDER, | |
240 | wxDIALOG_MODAL, | |
241 | wxDIALOG_MODELESS, | |
25832b3f | 242 | wxDIALOG_NO_PARENT, |
7bf85405 RD |
243 | wxDEFAULT_FRAME_STYLE, |
244 | wxDEFAULT_DIALOG_STYLE, | |
b8b8dda7 RD |
245 | |
246 | wxFRAME_TOOL_WINDOW, | |
bb0054cd | 247 | wxFRAME_FLOAT_ON_PARENT, |
4c9993c3 | 248 | wxFRAME_NO_WINDOW_MENU, |
1b62f00d | 249 | wxFRAME_NO_TASKBAR, |
1fded56b | 250 | wxFRAME_SHAPED, |
4f3449b4 | 251 | |
1afc06c2 RD |
252 | wxED_CLIENT_MARGIN, |
253 | wxED_BUTTONS_BOTTOM, | |
254 | wxED_BUTTONS_RIGHT, | |
255 | wxED_STATIC_LINE, | |
256 | wxEXT_DIALOG_STYLE, | |
bb0054cd | 257 | |
08127323 | 258 | wxCLIP_CHILDREN, |
edf2f43e | 259 | wxCLIP_SIBLINGS, |
b8b8dda7 | 260 | |
7bf85405 RD |
261 | wxRETAINED, |
262 | wxBACKINGSTORE, | |
b96c7a38 | 263 | |
7bf85405 RD |
264 | wxCOLOURED, |
265 | wxFIXED_LENGTH, | |
1b62f00d | 266 | |
7bf85405 RD |
267 | wxLB_NEEDED_SB, |
268 | wxLB_ALWAYS_SB, | |
269 | wxLB_SORT, | |
270 | wxLB_SINGLE, | |
271 | wxLB_MULTIPLE, | |
272 | wxLB_EXTENDED, | |
273 | wxLB_OWNERDRAW, | |
274 | wxLB_HSCROLL, | |
275 | wxPROCESS_ENTER, | |
276 | wxPASSWORD, | |
b1e930a5 | 277 | |
7bf85405 RD |
278 | wxCB_SIMPLE, |
279 | wxCB_DROPDOWN, | |
280 | wxCB_SORT, | |
281 | wxCB_READONLY, | |
282 | wxRA_HORIZONTAL, | |
283 | wxRA_VERTICAL, | |
ed175610 RD |
284 | wxRA_SPECIFY_ROWS, |
285 | wxRA_SPECIFY_COLS, | |
7bf85405 | 286 | wxRB_GROUP, |
1e4a197e | 287 | wxRB_SINGLE, |
7bf85405 RD |
288 | wxSL_HORIZONTAL, |
289 | wxSL_VERTICAL, | |
290 | wxSL_AUTOTICKS, | |
291 | wxSL_LABELS, | |
292 | wxSL_LEFT, | |
293 | wxSL_TOP, | |
294 | wxSL_RIGHT, | |
295 | wxSL_BOTTOM, | |
296 | wxSL_BOTH, | |
297 | wxSL_SELRANGE, | |
298 | wxSB_HORIZONTAL, | |
299 | wxSB_VERTICAL, | |
cf694132 | 300 | wxST_SIZEGRIP, |
2abc0a0f | 301 | wxST_NO_AUTORESIZE, |
203c2f9a | 302 | |
7bf85405 RD |
303 | wxFLOOD_SURFACE, |
304 | wxFLOOD_BORDER, | |
305 | wxODDEVEN_RULE, | |
306 | wxWINDING_RULE, | |
307 | wxTOOL_TOP, | |
308 | wxTOOL_BOTTOM, | |
309 | wxTOOL_LEFT, | |
310 | wxTOOL_RIGHT, | |
311 | wxOK, | |
312 | wxYES_NO, | |
313 | wxCANCEL, | |
314 | wxYES, | |
315 | wxNO, | |
1afc06c2 RD |
316 | wxNO_DEFAULT, |
317 | wxYES_DEFAULT, | |
7bf85405 RD |
318 | wxICON_EXCLAMATION, |
319 | wxICON_HAND, | |
320 | wxICON_QUESTION, | |
321 | wxICON_INFORMATION, | |
322 | wxICON_STOP, | |
323 | wxICON_ASTERISK, | |
324 | wxICON_MASK, | |
1afc06c2 RD |
325 | wxICON_WARNING, |
326 | wxICON_ERROR, | |
327 | ||
328 | wxFORWARD, | |
329 | wxBACKWARD, | |
330 | wxRESET, | |
331 | wxHELP, | |
332 | wxMORE, | |
333 | wxSETUP, | |
334 | ||
f3d9dc1d | 335 | |
7bf85405 RD |
336 | wxSIZE_AUTO_WIDTH, |
337 | wxSIZE_AUTO_HEIGHT, | |
338 | wxSIZE_AUTO, | |
339 | wxSIZE_USE_EXISTING, | |
340 | wxSIZE_ALLOW_MINUS_ONE, | |
7bf85405 RD |
341 | wxPORTRAIT, |
342 | wxLANDSCAPE, | |
bb0054cd RD |
343 | wxPRINT_QUALITY_HIGH, |
344 | wxPRINT_QUALITY_MEDIUM, | |
345 | wxPRINT_QUALITY_LOW, | |
346 | wxPRINT_QUALITY_DRAFT, | |
26e335b8 | 347 | |
3eb221f6 RD |
348 | wxID_ANY, |
349 | wxID_SEPARATOR, | |
350 | ||
d14a1e28 | 351 | wxID_LOWEST, |
7bf85405 RD |
352 | wxID_OPEN, |
353 | wxID_CLOSE, | |
354 | wxID_NEW, | |
355 | wxID_SAVE, | |
356 | wxID_SAVEAS, | |
357 | wxID_REVERT, | |
358 | wxID_EXIT, | |
359 | wxID_UNDO, | |
360 | wxID_REDO, | |
361 | wxID_HELP, | |
362 | wxID_PRINT, | |
363 | wxID_PRINT_SETUP, | |
364 | wxID_PREVIEW, | |
365 | wxID_ABOUT, | |
366 | wxID_HELP_CONTENTS, | |
367 | wxID_HELP_COMMANDS, | |
368 | wxID_HELP_PROCEDURES, | |
369 | wxID_HELP_CONTEXT, | |
b5a5d647 | 370 | wxID_CLOSE_ALL, |
1a10a058 | 371 | wxID_PREFERENCES, |
26e335b8 | 372 | |
7bf85405 RD |
373 | wxID_CUT, |
374 | wxID_COPY, | |
375 | wxID_PASTE, | |
376 | wxID_CLEAR, | |
377 | wxID_FIND, | |
d56cebe7 RD |
378 | wxID_DUPLICATE, |
379 | wxID_SELECTALL, | |
26e335b8 | 380 | |
3ef86e32 RD |
381 | wxID_DELETE, |
382 | wxID_REPLACE, | |
383 | wxID_REPLACE_ALL, | |
384 | wxID_PROPERTIES, | |
385 | ||
386 | wxID_VIEW_DETAILS, | |
387 | wxID_VIEW_LARGEICONS, | |
388 | wxID_VIEW_SMALLICONS, | |
389 | wxID_VIEW_LIST, | |
390 | wxID_VIEW_SORTDATE, | |
391 | wxID_VIEW_SORTNAME, | |
392 | wxID_VIEW_SORTSIZE, | |
393 | wxID_VIEW_SORTTYPE, | |
394 | ||
7bf85405 RD |
395 | wxID_FILE1, |
396 | wxID_FILE2, | |
397 | wxID_FILE3, | |
398 | wxID_FILE4, | |
399 | wxID_FILE5, | |
400 | wxID_FILE6, | |
401 | wxID_FILE7, | |
402 | wxID_FILE8, | |
403 | wxID_FILE9, | |
26e335b8 | 404 | |
7bf85405 RD |
405 | wxID_OK, |
406 | wxID_CANCEL, | |
407 | wxID_APPLY, | |
408 | wxID_YES, | |
409 | wxID_NO, | |
cf694132 | 410 | wxID_STATIC, |
f3d9dc1d RD |
411 | wxID_FORWARD, |
412 | wxID_BACKWARD, | |
26e335b8 | 413 | wxID_DEFAULT, |
f3d9dc1d | 414 | wxID_MORE, |
26e335b8 RD |
415 | wxID_SETUP, |
416 | wxID_RESET, | |
417 | wxID_CONTEXT_HELP, | |
418 | wxID_YESTOALL, | |
419 | wxID_NOTOALL, | |
420 | wxID_ABORT, | |
421 | wxID_RETRY, | |
422 | wxID_IGNORE, | |
f3d9dc1d | 423 | |
d14a1e28 | 424 | wxID_HIGHEST, |
dd9f7fea | 425 | |
7bf85405 RD |
426 | wxOPEN, |
427 | wxSAVE, | |
428 | wxHIDE_READONLY, | |
429 | wxOVERWRITE_PROMPT, | |
2abc0a0f | 430 | wxFILE_MUST_EXIST, |
f6bcfd97 | 431 | wxMULTIPLE, |
1b62f00d | 432 | wxCHANGE_DIR, |
7bf85405 RD |
433 | |
434 | wxACCEL_ALT, | |
435 | wxACCEL_CTRL, | |
436 | wxACCEL_SHIFT, | |
f6bcfd97 | 437 | wxACCEL_NORMAL, |
bb0054cd RD |
438 | |
439 | wxPD_AUTO_HIDE, | |
440 | wxPD_APP_MODAL, | |
441 | wxPD_CAN_ABORT, | |
a08cbc01 RD |
442 | wxPD_ELAPSED_TIME, |
443 | wxPD_ESTIMATED_TIME, | |
444 | wxPD_REMAINING_TIME, | |
bb0054cd | 445 | |
7cdaed0b | 446 | wxDD_NEW_DIR_BUTTON, |
daa3eac9 | 447 | wxDD_DEFAULT_STYLE, |
7cdaed0b | 448 | |
8bf5d46e | 449 | wxMENU_TEAROFF, |
1afc06c2 | 450 | wxMB_DOCKABLE, |
8bf5d46e | 451 | wxNO_FULL_REPAINT_ON_RESIZE, |
1afc06c2 | 452 | |
1afc06c2 RD |
453 | wxLI_HORIZONTAL, |
454 | wxLI_VERTICAL, | |
455 | ||
d1679124 | 456 | wxWS_EX_VALIDATE_RECURSIVELY, |
0122b7e3 | 457 | wxWS_EX_BLOCK_EVENTS, |
78e8819c | 458 | wxWS_EX_TRANSIENT, |
ecc08ead | 459 | |
3ef86e32 RD |
460 | wxWS_EX_THEMED_BACKGROUND, |
461 | wxWS_EX_PROCESS_IDLE, | |
462 | wxWS_EX_PROCESS_UI_UPDATES, | |
463 | ||
464 | ||
ecc08ead RD |
465 | // Mapping modes (as per Windows) |
466 | wxMM_TEXT, | |
467 | wxMM_LOMETRIC, | |
468 | wxMM_HIMETRIC, | |
469 | wxMM_LOENGLISH, | |
470 | wxMM_HIENGLISH, | |
471 | wxMM_TWIPS, | |
472 | wxMM_ISOTROPIC, | |
473 | wxMM_ANISOTROPIC, | |
474 | wxMM_POINTS, | |
475 | wxMM_METRIC, | |
476 | ||
3eb221f6 | 477 | |
1e4a197e RD |
478 | // It looks like wxTabCtrl may rise from the dead. Uncomment these if |
479 | // it gets an implementation for all platforms... | |
480 | // wxTC_RIGHTJUSTIFY, | |
481 | // wxTC_FIXEDWIDTH, | |
482 | // wxTC_TOP, | |
483 | // wxTC_LEFT, | |
484 | // wxTC_RIGHT, | |
485 | // wxTC_BOTTOM, | |
486 | // wxTC_MULTILINE, | |
487 | // wxTC_OWNERDRAW, | |
488 | ||
7bf85405 RD |
489 | }; |
490 | ||
491 | ||
d14a1e28 RD |
492 | |
493 | enum wxGeometryCentre | |
494 | { | |
495 | wxCENTRE = 0x0001, | |
496 | wxCENTER = wxCENTRE | |
497 | }; | |
498 | ||
499 | ||
500 | enum wxOrientation | |
501 | { | |
502 | wxHORIZONTAL, | |
503 | wxVERTICAL, | |
504 | wxBOTH | |
505 | }; | |
506 | ||
507 | enum wxDirection | |
508 | { | |
509 | wxLEFT, | |
510 | wxRIGHT, | |
511 | wxUP, | |
512 | wxDOWN, | |
513 | ||
514 | wxTOP, | |
515 | wxBOTTOM, | |
516 | ||
517 | wxNORTH, | |
518 | wxSOUTH, | |
519 | wxWEST, | |
520 | wxEAST, | |
521 | ||
522 | wxALL | |
523 | }; | |
524 | ||
525 | enum wxAlignment | |
526 | { | |
527 | wxALIGN_NOT, | |
528 | wxALIGN_CENTER_HORIZONTAL, | |
529 | wxALIGN_CENTRE_HORIZONTAL, | |
530 | wxALIGN_LEFT, | |
531 | wxALIGN_TOP, | |
532 | wxALIGN_RIGHT, | |
533 | wxALIGN_BOTTOM, | |
534 | wxALIGN_CENTER_VERTICAL, | |
535 | wxALIGN_CENTRE_VERTICAL, | |
536 | ||
537 | wxALIGN_CENTER, | |
538 | wxALIGN_CENTRE, | |
539 | ||
540 | wxALIGN_MASK, | |
541 | }; | |
542 | ||
543 | enum wxStretch | |
544 | { | |
545 | wxSTRETCH_NOT, | |
546 | wxSHRINK, | |
547 | wxGROW, | |
548 | wxEXPAND, | |
549 | wxSHAPED, | |
550 | wxADJUST_MINSIZE, | |
551 | wxTILE, | |
552 | }; | |
553 | ||
554 | ||
ebf4302c RD |
555 | enum wxBorder |
556 | { | |
557 | wxBORDER_DEFAULT, | |
558 | wxBORDER_NONE, | |
559 | wxBORDER_STATIC, | |
560 | wxBORDER_SIMPLE, | |
561 | wxBORDER_RAISED, | |
562 | wxBORDER_SUNKEN, | |
563 | wxBORDER_DOUBLE, | |
564 | wxBORDER_MASK, | |
565 | }; | |
566 | ||
567 | ||
7bf85405 RD |
568 | enum { |
569 | wxDEFAULT , | |
570 | wxDECORATIVE, | |
571 | wxROMAN, | |
572 | wxSCRIPT, | |
573 | wxSWISS, | |
574 | wxMODERN, | |
575 | wxTELETYPE, | |
576 | wxVARIABLE, | |
577 | wxFIXED, | |
578 | wxNORMAL, | |
579 | wxLIGHT, | |
580 | wxBOLD, | |
581 | wxITALIC, | |
582 | wxSLANT, | |
583 | wxSOLID, | |
584 | wxDOT, | |
585 | wxLONG_DASH, | |
586 | wxSHORT_DASH, | |
587 | wxDOT_DASH, | |
588 | wxUSER_DASH, | |
589 | wxTRANSPARENT, | |
590 | wxSTIPPLE, | |
591 | wxBDIAGONAL_HATCH, | |
592 | wxCROSSDIAG_HATCH, | |
593 | wxFDIAGONAL_HATCH, | |
594 | wxCROSS_HATCH, | |
595 | wxHORIZONTAL_HATCH, | |
596 | wxVERTICAL_HATCH, | |
597 | wxJOIN_BEVEL, | |
598 | wxJOIN_MITER, | |
599 | wxJOIN_ROUND, | |
600 | wxCAP_ROUND, | |
601 | wxCAP_PROJECTING, | |
602 | wxCAP_BUTT | |
603 | }; | |
604 | ||
605 | typedef enum { | |
606 | wxCLEAR, // 0 | |
607 | wxXOR, // src XOR dst | |
608 | wxINVERT, // NOT dst | |
609 | wxOR_REVERSE, // src OR (NOT dst) | |
610 | wxAND_REVERSE,// src AND (NOT dst) | |
611 | wxCOPY, // src | |
612 | wxAND, // src AND dst | |
613 | wxAND_INVERT, // (NOT src) AND dst | |
614 | wxNO_OP, // dst | |
615 | wxNOR, // (NOT src) AND (NOT dst) | |
616 | wxEQUIV, // (NOT src) XOR dst | |
617 | wxSRC_INVERT, // (NOT src) | |
618 | wxOR_INVERT, // (NOT src) OR dst | |
619 | wxNAND, // (NOT src) OR (NOT dst) | |
620 | wxOR, // src OR dst | |
621 | wxSET, // 1 | |
26b9cf27 RD |
622 | // wxSRC_OR, // source _bitmap_ OR destination |
623 | // wxSRC_AND // source _bitmap_ AND destination | |
7bf85405 RD |
624 | } form_ops_t; |
625 | ||
65fe3842 RD |
626 | enum wxKeyCode { |
627 | WXK_BACK = 8, | |
628 | WXK_TAB = 9, | |
629 | WXK_RETURN = 13, | |
630 | WXK_ESCAPE = 27, | |
631 | WXK_SPACE = 32, | |
632 | WXK_DELETE = 127, | |
633 | ||
634 | WXK_START = 300, | |
635 | WXK_LBUTTON, | |
636 | WXK_RBUTTON, | |
637 | WXK_CANCEL, | |
638 | WXK_MBUTTON, | |
639 | WXK_CLEAR, | |
640 | WXK_SHIFT, | |
641 | WXK_ALT, | |
642 | WXK_CONTROL, | |
643 | WXK_MENU, | |
644 | WXK_PAUSE, | |
645 | WXK_CAPITAL, | |
646 | WXK_PRIOR, /* Page up */ | |
647 | WXK_NEXT, /* Page down */ | |
648 | WXK_END, | |
649 | WXK_HOME, | |
650 | WXK_LEFT, | |
651 | WXK_UP, | |
652 | WXK_RIGHT, | |
653 | WXK_DOWN, | |
654 | WXK_SELECT, | |
655 | WXK_PRINT, | |
656 | WXK_EXECUTE, | |
657 | WXK_SNAPSHOT, | |
658 | WXK_INSERT, | |
659 | WXK_HELP, | |
660 | WXK_NUMPAD0, | |
661 | WXK_NUMPAD1, | |
662 | WXK_NUMPAD2, | |
663 | WXK_NUMPAD3, | |
664 | WXK_NUMPAD4, | |
665 | WXK_NUMPAD5, | |
666 | WXK_NUMPAD6, | |
667 | WXK_NUMPAD7, | |
668 | WXK_NUMPAD8, | |
669 | WXK_NUMPAD9, | |
670 | WXK_MULTIPLY, | |
671 | WXK_ADD, | |
672 | WXK_SEPARATOR, | |
673 | WXK_SUBTRACT, | |
674 | WXK_DECIMAL, | |
675 | WXK_DIVIDE, | |
676 | WXK_F1, | |
677 | WXK_F2, | |
678 | WXK_F3, | |
679 | WXK_F4, | |
680 | WXK_F5, | |
681 | WXK_F6, | |
682 | WXK_F7, | |
683 | WXK_F8, | |
684 | WXK_F9, | |
685 | WXK_F10, | |
686 | WXK_F11, | |
687 | WXK_F12, | |
688 | WXK_F13, | |
689 | WXK_F14, | |
690 | WXK_F15, | |
691 | WXK_F16, | |
692 | WXK_F17, | |
693 | WXK_F18, | |
694 | WXK_F19, | |
695 | WXK_F20, | |
696 | WXK_F21, | |
697 | WXK_F22, | |
698 | WXK_F23, | |
699 | WXK_F24, | |
700 | WXK_NUMLOCK, | |
701 | WXK_SCROLL, | |
702 | WXK_PAGEUP, | |
703 | WXK_PAGEDOWN, | |
704 | ||
705 | WXK_NUMPAD_SPACE, | |
706 | WXK_NUMPAD_TAB, | |
707 | WXK_NUMPAD_ENTER, | |
708 | WXK_NUMPAD_F1, | |
709 | WXK_NUMPAD_F2, | |
710 | WXK_NUMPAD_F3, | |
711 | WXK_NUMPAD_F4, | |
712 | WXK_NUMPAD_HOME, | |
713 | WXK_NUMPAD_LEFT, | |
714 | WXK_NUMPAD_UP, | |
715 | WXK_NUMPAD_RIGHT, | |
716 | WXK_NUMPAD_DOWN, | |
717 | WXK_NUMPAD_PRIOR, | |
718 | WXK_NUMPAD_PAGEUP, | |
719 | WXK_NUMPAD_NEXT, | |
720 | WXK_NUMPAD_PAGEDOWN, | |
721 | WXK_NUMPAD_END, | |
722 | WXK_NUMPAD_BEGIN, | |
723 | WXK_NUMPAD_INSERT, | |
724 | WXK_NUMPAD_DELETE, | |
725 | WXK_NUMPAD_EQUAL, | |
726 | WXK_NUMPAD_MULTIPLY, | |
727 | WXK_NUMPAD_ADD, | |
728 | WXK_NUMPAD_SEPARATOR, | |
729 | WXK_NUMPAD_SUBTRACT, | |
730 | WXK_NUMPAD_DECIMAL, | |
9cbf6f6e RD |
731 | WXK_NUMPAD_DIVIDE, |
732 | ||
733 | WXK_WINDOWS_LEFT, | |
734 | WXK_WINDOWS_RIGHT, | |
735 | WXK_WINDOWS_MENU | |
65fe3842 | 736 | |
7bf85405 RD |
737 | }; |
738 | ||
0a651eb8 | 739 | |
cf694132 RD |
740 | |
741 | typedef enum { | |
742 | wxPAPER_NONE, // Use specific dimensions | |
743 | wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches | |
744 | wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches | |
745 | wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters | |
746 | wxPAPER_CSHEET, // C Sheet, 17 by 22 inches | |
747 | wxPAPER_DSHEET, // D Sheet, 22 by 34 inches | |
748 | wxPAPER_ESHEET, // E Sheet, 34 by 44 inches | |
749 | wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches | |
750 | wxPAPER_TABLOID, // Tabloid, 11 by 17 inches | |
751 | wxPAPER_LEDGER, // Ledger, 17 by 11 inches | |
752 | wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches | |
753 | wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches | |
754 | wxPAPER_A3, // A3 sheet, 297 by 420 millimeters | |
755 | wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters | |
756 | wxPAPER_A5, // A5 sheet, 148 by 210 millimeters | |
757 | wxPAPER_B4, // B4 sheet, 250 by 354 millimeters | |
758 | wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper | |
759 | wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper | |
760 | wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper | |
761 | wxPAPER_10X14, // 10-by-14-inch sheet | |
762 | wxPAPER_11X17, // 11-by-17-inch sheet | |
763 | wxPAPER_NOTE, // Note, 8 1/2 by 11 inches | |
764 | wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches | |
765 | wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches | |
766 | wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches | |
767 | wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches | |
768 | wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches | |
769 | wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters | |
770 | wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters | |
771 | wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters | |
772 | wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters | |
773 | wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters | |
774 | wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters | |
775 | wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters | |
776 | wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters | |
777 | wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters | |
778 | wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters | |
779 | wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches | |
780 | wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches | |
781 | wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches | |
782 | wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches | |
783 | wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches | |
784 | ||
785 | wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm | |
786 | wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm | |
787 | wxPAPER_9X11, // 9 x 11 in | |
788 | wxPAPER_10X11, // 10 x 11 in | |
789 | wxPAPER_15X11, // 15 x 11 in | |
790 | wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm | |
791 | wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in | |
792 | wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in | |
793 | wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in | |
794 | wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in | |
795 | wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in | |
796 | wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm | |
797 | wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in | |
798 | wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm | |
799 | wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm | |
800 | wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in | |
801 | wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm | |
802 | wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm | |
803 | wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm | |
804 | wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm | |
805 | wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm | |
806 | wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm | |
807 | wxPAPER_A2, // A2 420 x 594 mm | |
808 | wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm | |
809 | wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm | |
810 | ||
811 | } wxPaperSize ; | |
812 | ||
bb0054cd RD |
813 | typedef enum { |
814 | wxDUPLEX_SIMPLEX, // Non-duplex | |
815 | wxDUPLEX_HORIZONTAL, | |
816 | wxDUPLEX_VERTICAL | |
817 | } wxDuplexMode; | |
818 | ||
cf694132 RD |
819 | |
820 | ||
e9159fe8 RD |
821 | // menu and toolbar item kinds |
822 | enum wxItemKind | |
823 | { | |
546bfbea VS |
824 | wxITEM_SEPARATOR = -1, |
825 | wxITEM_NORMAL, | |
826 | wxITEM_CHECK, | |
827 | wxITEM_RADIO, | |
828 | wxITEM_MAX | |
e9159fe8 RD |
829 | }; |
830 | ||
23bed520 RD |
831 | enum wxHitTest |
832 | { | |
833 | wxHT_NOWHERE, | |
834 | ||
835 | // scrollbar | |
836 | wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE, | |
837 | wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line | |
838 | wxHT_SCROLLBAR_ARROW_LINE_2, // right or down | |
839 | wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page | |
840 | wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down | |
841 | wxHT_SCROLLBAR_THUMB, // on the thumb | |
842 | wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb | |
843 | wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb | |
844 | wxHT_SCROLLBAR_LAST, | |
845 | ||
846 | // window | |
847 | wxHT_WINDOW_OUTSIDE, // not in this window at all | |
848 | wxHT_WINDOW_INSIDE, // in the client area | |
849 | wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar | |
850 | wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar | |
851 | wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars | |
852 | ||
853 | wxHT_MAX | |
854 | }; | |
855 | ||
856 | ||
3ef86e32 RD |
857 | %{ |
858 | #if ! wxUSE_HOTKEY | |
859 | enum wxHotkeyModifier | |
860 | { | |
861 | wxMOD_NONE = 0, | |
862 | wxMOD_ALT = 1, | |
863 | wxMOD_CONTROL = 2, | |
864 | wxMOD_SHIFT = 4, | |
865 | wxMOD_WIN = 8 | |
866 | }; | |
867 | #define wxEVT_HOTKEY 9999 | |
868 | #endif | |
869 | %} | |
870 | ||
871 | enum wxHotkeyModifier | |
872 | { | |
873 | wxMOD_NONE = 0, | |
874 | wxMOD_ALT = 1, | |
875 | wxMOD_CONTROL = 2, | |
876 | wxMOD_SHIFT = 4, | |
877 | wxMOD_WIN = 8 | |
878 | }; | |
879 | ||
880 | ||
881 | enum wxUpdateUI | |
882 | { | |
883 | wxUPDATE_UI_NONE = 0x0000, | |
884 | wxUPDATE_UI_RECURSE = 0x0001, | |
885 | wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle | |
886 | }; | |
887 | ||
888 | ||
23bed520 | 889 | |
7bf85405 RD |
890 | //--------------------------------------------------------------------------- |
891 |