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