]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
reSWIGged
[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
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
457 wxLI_HORIZONTAL,
458 wxLI_VERTICAL,
459
460 wxWS_EX_VALIDATE_RECURSIVELY,
461 wxWS_EX_BLOCK_EVENTS,
462 wxWS_EX_TRANSIENT,
463
464 wxWS_EX_THEMED_BACKGROUND,
465 wxWS_EX_PROCESS_IDLE,
466 wxWS_EX_PROCESS_UI_UPDATES,
467
468
469 // Mapping modes (as per Windows)
470 wxMM_TEXT,
471 wxMM_LOMETRIC,
472 wxMM_HIMETRIC,
473 wxMM_LOENGLISH,
474 wxMM_HIENGLISH,
475 wxMM_TWIPS,
476 wxMM_ISOTROPIC,
477 wxMM_ANISOTROPIC,
478 wxMM_POINTS,
479 wxMM_METRIC,
480
481
482 // It looks like wxTabCtrl may rise from the dead. Uncomment these if
483 // it gets an implementation for all platforms...
484 // wxTC_RIGHTJUSTIFY,
485 // wxTC_FIXEDWIDTH,
486 // wxTC_TOP,
487 // wxTC_LEFT,
488 // wxTC_RIGHT,
489 // wxTC_BOTTOM,
490 // wxTC_MULTILINE,
491 // wxTC_OWNERDRAW,
492
493 };
494
495
496
497 enum wxGeometryCentre
498 {
499 wxCENTRE = 0x0001,
500 wxCENTER = wxCENTRE
501 };
502
503
504 enum wxOrientation
505 {
506 wxHORIZONTAL,
507 wxVERTICAL,
508 wxBOTH
509 };
510
511 enum wxDirection
512 {
513 wxLEFT,
514 wxRIGHT,
515 wxUP,
516 wxDOWN,
517
518 wxTOP,
519 wxBOTTOM,
520
521 wxNORTH,
522 wxSOUTH,
523 wxWEST,
524 wxEAST,
525
526 wxALL
527 };
528
529 enum wxAlignment
530 {
531 wxALIGN_NOT,
532 wxALIGN_CENTER_HORIZONTAL,
533 wxALIGN_CENTRE_HORIZONTAL,
534 wxALIGN_LEFT,
535 wxALIGN_TOP,
536 wxALIGN_RIGHT,
537 wxALIGN_BOTTOM,
538 wxALIGN_CENTER_VERTICAL,
539 wxALIGN_CENTRE_VERTICAL,
540
541 wxALIGN_CENTER,
542 wxALIGN_CENTRE,
543
544 wxALIGN_MASK,
545 };
546
547 enum wxStretch
548 {
549 wxSTRETCH_NOT,
550 wxSHRINK,
551 wxGROW,
552 wxEXPAND,
553 wxSHAPED,
554 wxADJUST_MINSIZE,
555 wxTILE,
556 };
557
558
559 enum wxBorder
560 {
561 wxBORDER_DEFAULT,
562 wxBORDER_NONE,
563 wxBORDER_STATIC,
564 wxBORDER_SIMPLE,
565 wxBORDER_RAISED,
566 wxBORDER_SUNKEN,
567 wxBORDER_DOUBLE,
568 wxBORDER_MASK,
569 };
570
571
572 enum {
573 wxDEFAULT ,
574 wxDECORATIVE,
575 wxROMAN,
576 wxSCRIPT,
577 wxSWISS,
578 wxMODERN,
579 wxTELETYPE,
580 wxVARIABLE,
581 wxFIXED,
582 wxNORMAL,
583 wxLIGHT,
584 wxBOLD,
585 wxITALIC,
586 wxSLANT,
587 wxSOLID,
588 wxDOT,
589 wxLONG_DASH,
590 wxSHORT_DASH,
591 wxDOT_DASH,
592 wxUSER_DASH,
593 wxTRANSPARENT,
594 wxSTIPPLE,
595 wxBDIAGONAL_HATCH,
596 wxCROSSDIAG_HATCH,
597 wxFDIAGONAL_HATCH,
598 wxCROSS_HATCH,
599 wxHORIZONTAL_HATCH,
600 wxVERTICAL_HATCH,
601 wxJOIN_BEVEL,
602 wxJOIN_MITER,
603 wxJOIN_ROUND,
604 wxCAP_ROUND,
605 wxCAP_PROJECTING,
606 wxCAP_BUTT
607 };
608
609 typedef enum {
610 wxCLEAR, // 0
611 wxXOR, // src XOR dst
612 wxINVERT, // NOT dst
613 wxOR_REVERSE, // src OR (NOT dst)
614 wxAND_REVERSE,// src AND (NOT dst)
615 wxCOPY, // src
616 wxAND, // src AND dst
617 wxAND_INVERT, // (NOT src) AND dst
618 wxNO_OP, // dst
619 wxNOR, // (NOT src) AND (NOT dst)
620 wxEQUIV, // (NOT src) XOR dst
621 wxSRC_INVERT, // (NOT src)
622 wxOR_INVERT, // (NOT src) OR dst
623 wxNAND, // (NOT src) OR (NOT dst)
624 wxOR, // src OR dst
625 wxSET, // 1
626 // wxSRC_OR, // source _bitmap_ OR destination
627 // wxSRC_AND // source _bitmap_ AND destination
628 } form_ops_t;
629
630 enum wxKeyCode {
631 WXK_BACK = 8,
632 WXK_TAB = 9,
633 WXK_RETURN = 13,
634 WXK_ESCAPE = 27,
635 WXK_SPACE = 32,
636 WXK_DELETE = 127,
637
638 WXK_START = 300,
639 WXK_LBUTTON,
640 WXK_RBUTTON,
641 WXK_CANCEL,
642 WXK_MBUTTON,
643 WXK_CLEAR,
644 WXK_SHIFT,
645 WXK_ALT,
646 WXK_CONTROL,
647 WXK_MENU,
648 WXK_PAUSE,
649 WXK_CAPITAL,
650 WXK_PRIOR, /* Page up */
651 WXK_NEXT, /* Page down */
652 WXK_END,
653 WXK_HOME,
654 WXK_LEFT,
655 WXK_UP,
656 WXK_RIGHT,
657 WXK_DOWN,
658 WXK_SELECT,
659 WXK_PRINT,
660 WXK_EXECUTE,
661 WXK_SNAPSHOT,
662 WXK_INSERT,
663 WXK_HELP,
664 WXK_NUMPAD0,
665 WXK_NUMPAD1,
666 WXK_NUMPAD2,
667 WXK_NUMPAD3,
668 WXK_NUMPAD4,
669 WXK_NUMPAD5,
670 WXK_NUMPAD6,
671 WXK_NUMPAD7,
672 WXK_NUMPAD8,
673 WXK_NUMPAD9,
674 WXK_MULTIPLY,
675 WXK_ADD,
676 WXK_SEPARATOR,
677 WXK_SUBTRACT,
678 WXK_DECIMAL,
679 WXK_DIVIDE,
680 WXK_F1,
681 WXK_F2,
682 WXK_F3,
683 WXK_F4,
684 WXK_F5,
685 WXK_F6,
686 WXK_F7,
687 WXK_F8,
688 WXK_F9,
689 WXK_F10,
690 WXK_F11,
691 WXK_F12,
692 WXK_F13,
693 WXK_F14,
694 WXK_F15,
695 WXK_F16,
696 WXK_F17,
697 WXK_F18,
698 WXK_F19,
699 WXK_F20,
700 WXK_F21,
701 WXK_F22,
702 WXK_F23,
703 WXK_F24,
704 WXK_NUMLOCK,
705 WXK_SCROLL,
706 WXK_PAGEUP,
707 WXK_PAGEDOWN,
708
709 WXK_NUMPAD_SPACE,
710 WXK_NUMPAD_TAB,
711 WXK_NUMPAD_ENTER,
712 WXK_NUMPAD_F1,
713 WXK_NUMPAD_F2,
714 WXK_NUMPAD_F3,
715 WXK_NUMPAD_F4,
716 WXK_NUMPAD_HOME,
717 WXK_NUMPAD_LEFT,
718 WXK_NUMPAD_UP,
719 WXK_NUMPAD_RIGHT,
720 WXK_NUMPAD_DOWN,
721 WXK_NUMPAD_PRIOR,
722 WXK_NUMPAD_PAGEUP,
723 WXK_NUMPAD_NEXT,
724 WXK_NUMPAD_PAGEDOWN,
725 WXK_NUMPAD_END,
726 WXK_NUMPAD_BEGIN,
727 WXK_NUMPAD_INSERT,
728 WXK_NUMPAD_DELETE,
729 WXK_NUMPAD_EQUAL,
730 WXK_NUMPAD_MULTIPLY,
731 WXK_NUMPAD_ADD,
732 WXK_NUMPAD_SEPARATOR,
733 WXK_NUMPAD_SUBTRACT,
734 WXK_NUMPAD_DECIMAL,
735 WXK_NUMPAD_DIVIDE,
736
737 WXK_WINDOWS_LEFT,
738 WXK_WINDOWS_RIGHT,
739 WXK_WINDOWS_MENU
740
741 };
742
743
744
745 typedef enum {
746 wxPAPER_NONE, // Use specific dimensions
747 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
748 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
749 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
750 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
751 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
752 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
753 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
754 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
755 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
756 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
757 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
758 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
759 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
760 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
761 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
762 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
763 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
764 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
765 wxPAPER_10X14, // 10-by-14-inch sheet
766 wxPAPER_11X17, // 11-by-17-inch sheet
767 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
768 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
769 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
770 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
771 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
772 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
773 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
774 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
775 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
776 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
777 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
778 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
779 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
780 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
781 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
782 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
783 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
784 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
785 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
786 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
787 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
788
789 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
790 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
791 wxPAPER_9X11, // 9 x 11 in
792 wxPAPER_10X11, // 10 x 11 in
793 wxPAPER_15X11, // 15 x 11 in
794 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
795 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
796 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
797 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
798 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
799 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
800 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
801 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
802 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
803 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
804 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
805 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
806 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
807 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
808 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
809 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
810 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
811 wxPAPER_A2, // A2 420 x 594 mm
812 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
813 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
814
815 } wxPaperSize ;
816
817 typedef enum {
818 wxDUPLEX_SIMPLEX, // Non-duplex
819 wxDUPLEX_HORIZONTAL,
820 wxDUPLEX_VERTICAL
821 } wxDuplexMode;
822
823
824
825 // menu and toolbar item kinds
826 enum wxItemKind
827 {
828 wxITEM_SEPARATOR = -1,
829 wxITEM_NORMAL,
830 wxITEM_CHECK,
831 wxITEM_RADIO,
832 wxITEM_MAX
833 };
834
835 enum wxHitTest
836 {
837 wxHT_NOWHERE,
838
839 // scrollbar
840 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
841 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
842 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
843 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
844 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
845 wxHT_SCROLLBAR_THUMB, // on the thumb
846 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
847 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
848 wxHT_SCROLLBAR_LAST,
849
850 // window
851 wxHT_WINDOW_OUTSIDE, // not in this window at all
852 wxHT_WINDOW_INSIDE, // in the client area
853 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
854 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
855 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
856
857 wxHT_MAX
858 };
859
860
861 %{
862 #if ! wxUSE_HOTKEY
863 enum wxHotkeyModifier
864 {
865 wxMOD_NONE = 0,
866 wxMOD_ALT = 1,
867 wxMOD_CONTROL = 2,
868 wxMOD_SHIFT = 4,
869 wxMOD_WIN = 8
870 };
871 #define wxEVT_HOTKEY 9999
872 #endif
873 %}
874
875 enum wxHotkeyModifier
876 {
877 wxMOD_NONE = 0,
878 wxMOD_ALT = 1,
879 wxMOD_CONTROL = 2,
880 wxMOD_SHIFT = 4,
881 wxMOD_WIN = 8
882 };
883
884
885 enum wxUpdateUI
886 {
887 wxUPDATE_UI_NONE = 0x0000,
888 wxUPDATE_UI_RECURSE = 0x0001,
889 wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle
890 };
891
892
893
894 //---------------------------------------------------------------------------
895