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