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