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