]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
Added classinfo macros for wxTreeEvent
[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
15 //---------------------------------------------------------------------------
16 // Forward declares...
17
18 class wxAcceleratorEntry;
19 class wxAcceleratorTable;
20 class wxActivateEvent;
21 class wxBitmapButton;
22 class wxBitmap;
23 class wxBrush;
24 class wxButton;
25 class wxCalculateLayoutEvent;
26 class wxCaret;
27 class wxCheckBox;
28 class wxCheckListBox;
29 class wxChoice;
30 class wxClientDC;
31 class wxCloseEvent;
32 class wxColourData;
33 class wxColourDialog;
34 class wxColour;
35 class wxComboBox;
36 class wxCommandEvent;
37 class wxConfig;
38 class wxControl;
39 class wxCursor;
40 class wxDC;
41 class wxDialog;
42 class wxDirDialog;
43 class wxDropFilesEvent;
44 class wxEraseEvent;
45 class wxEvent;
46 class wxEvtHandler;
47 class wxFileDialog;
48 class wxFocusEvent;
49 class wxFontData;
50 class wxFontDialog;
51 class wxFont;
52 class wxFrame;
53 class wxGauge;
54 class wxGridCell;
55 class wxGridEvent;
56 class wxGrid;
57 class wxIconizeEvent;
58 class wxIcon;
59 class wxIdleEvent;
60 class wxImageList;
61 class wxIndividualLayoutConstraint;
62 class wxInitDialogEvent;
63 class wxJoystickEvent;
64 class wxKeyEvent;
65 class wxLayoutAlgorithm;
66 class wxLayoutConstraints;
67 class wxListBox;
68 class wxListCtrl;
69 class wxListEvent;
70 class wxListItem;
71 class wxMDIChildFrame;
72 class wxMDIClientWindow;
73 class wxMDIParentFrame;
74 class wxMask;
75 class wxMaximizeEvent;
76 class wxMemoryDC;
77 class wxMenuBar;
78 class wxMenuEvent;
79 class wxMenuItem;
80 class wxMenu;
81 class wxMessageDialog;
82 class wxMetaFileDC;
83 class wxMiniFrame;
84 class wxMouseEvent;
85 class wxMoveEvent;
86 class wxNotebookEvent;
87 class wxNotebook;
88 class wxPageSetupData;
89 class wxPageSetupDialog;
90 class wxPaintDC;
91 class wxPaintEvent;
92 class wxPalette;
93 class wxPanel;
94 class wxPen;
95 class wxPoint;
96 class wxPostScriptDC;
97 class wxPrintData;
98 class wxPrintDialog;
99 class wxPrinterDC;
100 class wxQueryLayoutInfoEvent;
101 class wxRadioBox;
102 class wxRadioButton;
103 class wxRealPoint;
104 class wxRect;
105 class wxRegionIterator;
106 class wxRegion;
107 class wxSashEvent;
108 class wxSashLayoutWindow;
109 class wxSashWindow;
110 class wxScreenDC;
111 class wxScrollBar;
112 class wxScrollEvent;
113 class wxScrollWinEvent;
114 class wxScrolledWindow;
115 class wxShowEvent;
116 class wxSingleChoiceDialog;
117 class wxSizeEvent;
118 class wxSize;
119 class wxSlider;
120 class wxSpinButton;
121 class wxSpinEvent;
122 class wxSplitterWindow;
123 class wxStaticBitmap;
124 class wxStaticBox;
125 class wxStaticText;
126 class wxStatusBar;
127 class wxSysColourChangedEvent;
128 class wxTaskBarIcon;
129 class wxTextCtrl;
130 class wxTextEntryDialog;
131 class wxTimer;
132 class wxToolBarTool;
133 class wxToolBar;
134 class wxToolTip;
135 class wxTreeCtrl;
136 class wxTreeEvent;
137 class wxTreeItemData;
138 class wxTreeItemId;
139 class wxUpdateUIEvent;
140 class wxWindowDC;
141 class wxWindow;
142 class wxSizer;
143 class wxBoxSizer;
144 class wxStaticBoxSizer;
145
146 class wxPyApp;
147 class wxPyMenu;
148 class wxPyTimer;
149
150
151 //---------------------------------------------------------------------------
152
153 // some definitions for SWIG only
154 typedef unsigned char byte;
155 typedef short int WXTYPE;
156 typedef int wxWindowID;
157 typedef unsigned int uint;
158 typedef signed int EBool;
159 typedef unsigned int size_t
160 typedef unsigned int time_t
161 typedef int wxPrintQuality;
162 typedef int wxCoord;
163 typedef char wxChar;
164
165
166 //---------------------------------------------------------------------------
167
168 // General numeric #define's and etc. Making them all enums makes SWIG use the
169 // real macro when making the Python Int
170
171 enum {
172 wxMAJOR_VERSION,
173 wxMINOR_VERSION,
174 wxRELEASE_NUMBER,
175
176 wxNOT_FOUND,
177
178 wxVSCROLL,
179 wxHSCROLL,
180 wxCAPTION,
181 wxDOUBLE_BORDER,
182 wxSUNKEN_BORDER,
183 wxRAISED_BORDER,
184 wxBORDER,
185 wxSIMPLE_BORDER,
186 wxSTATIC_BORDER,
187 wxTRANSPARENT_WINDOW,
188 wxNO_BORDER,
189 wxUSER_COLOURS,
190 wxNO_3D,
191 //wxOVERRIDE_KEY_TRANSLATIONS,
192 wxTAB_TRAVERSAL,
193 wxWANTS_CHARS,
194 wxHORIZONTAL,
195 wxVERTICAL,
196 wxBOTH,
197 wxCENTER_FRAME,
198 wxCENTRE_ON_SCREEN,
199 wxCENTER_ON_SCREEN,
200
201 wxSTAY_ON_TOP,
202 wxICONIZE,
203 wxMINIMIZE,
204 wxMAXIMIZE,
205 wxTHICK_FRAME,
206 wxSYSTEM_MENU,
207 wxMINIMIZE_BOX,
208 wxMAXIMIZE_BOX,
209 wxTINY_CAPTION_HORIZ,
210 wxTINY_CAPTION_VERT,
211 wxRESIZE_BOX,
212 wxRESIZE_BORDER,
213 wxDIALOG_MODAL,
214 wxDIALOG_MODELESS,
215 wxDIALOG_NO_PARENT,
216 wxDEFAULT_FRAME_STYLE,
217 wxDEFAULT_DIALOG_STYLE,
218
219 wxFRAME_TOOL_WINDOW,
220 wxFRAME_FLOAT_ON_PARENT,
221 wxFRAME_NO_WINDOW_MENU,
222 wxFRAME_NO_TASKBAR,
223
224 wxED_CLIENT_MARGIN,
225 wxED_BUTTONS_BOTTOM,
226 wxED_BUTTONS_RIGHT,
227 wxED_STATIC_LINE,
228 wxEXT_DIALOG_STYLE,
229
230 wxCLIP_CHILDREN,
231 wxCLIP_SIBLINGS,
232
233 wxRETAINED,
234 wxBACKINGSTORE,
235 wxTB_3DBUTTONS,
236 wxTB_HORIZONTAL,
237 wxTB_VERTICAL,
238 wxTB_FLAT,
239 wxTB_DOCKABLE,
240 wxCOLOURED,
241 wxFIXED_LENGTH,
242 wxALIGN_LEFT,
243 wxALIGN_CENTER_HORIZONTAL,
244 wxALIGN_CENTRE_HORIZONTAL,
245 wxALIGN_RIGHT,
246 wxALIGN_BOTTOM,
247 wxALIGN_CENTER_VERTICAL,
248 wxALIGN_CENTRE_VERTICAL,
249 wxALIGN_TOP,
250 wxALIGN_CENTER,
251 wxALIGN_CENTRE,
252 wxSHAPED,
253 wxADJUST_MINSIZE,
254
255 wxLB_NEEDED_SB,
256 wxLB_ALWAYS_SB,
257 wxLB_SORT,
258 wxLB_SINGLE,
259 wxLB_MULTIPLE,
260 wxLB_EXTENDED,
261 wxLB_OWNERDRAW,
262 wxLB_HSCROLL,
263 wxPROCESS_ENTER,
264 wxPASSWORD,
265 wxTE_PROCESS_ENTER,
266 wxTE_PROCESS_TAB,
267 wxTE_PASSWORD,
268 wxTE_READONLY,
269 wxTE_RICH,
270 wxTE_MULTILINE,
271 wxTE_AUTO_SCROLL,
272 wxTE_NO_VSCROLL,
273 wxTE_AUTO_URL,
274 wxCB_SIMPLE,
275 wxCB_DROPDOWN,
276 wxCB_SORT,
277 wxCB_READONLY,
278 wxRA_HORIZONTAL,
279 wxRA_VERTICAL,
280 wxRA_SPECIFY_ROWS,
281 wxRA_SPECIFY_COLS,
282 wxRB_GROUP,
283 wxGA_PROGRESSBAR,
284 wxGA_HORIZONTAL,
285 wxGA_VERTICAL,
286 wxGA_SMOOTH,
287 wxSL_HORIZONTAL,
288 wxSL_VERTICAL,
289 wxSL_AUTOTICKS,
290 wxSL_LABELS,
291 wxSL_LEFT,
292 wxSL_TOP,
293 wxSL_RIGHT,
294 wxSL_BOTTOM,
295 wxSL_BOTH,
296 wxSL_SELRANGE,
297 wxSB_HORIZONTAL,
298 wxSB_VERTICAL,
299 wxST_SIZEGRIP,
300 wxST_NO_AUTORESIZE,
301 wxBU_AUTODRAW,
302 wxBU_NOAUTODRAW,
303 wxSP_VERTICAL,
304 wxSP_HORIZONTAL,
305 wxSP_ARROW_KEYS,
306 wxSP_WRAP,
307 wxSP_NOBORDER,
308 wxSP_3D,
309 wxSP_3DSASH,
310 wxSP_3DBORDER,
311 wxSP_FULLSASH,
312 wxSP_BORDER,
313 wxSP_LIVE_UPDATE,
314 wxSP_PERMIT_UNSPLIT,
315 wxFLOOD_SURFACE,
316 wxFLOOD_BORDER,
317 wxODDEVEN_RULE,
318 wxWINDING_RULE,
319 wxTOOL_TOP,
320 wxTOOL_BOTTOM,
321 wxTOOL_LEFT,
322 wxTOOL_RIGHT,
323 wxOK,
324 wxYES_NO,
325 wxCANCEL,
326 wxYES,
327 wxNO,
328 wxNO_DEFAULT,
329 wxYES_DEFAULT,
330 wxICON_EXCLAMATION,
331 wxICON_HAND,
332 wxICON_QUESTION,
333 wxICON_INFORMATION,
334 wxICON_STOP,
335 wxICON_ASTERISK,
336 wxICON_MASK,
337 wxICON_WARNING,
338 wxICON_ERROR,
339
340 wxFORWARD,
341 wxBACKWARD,
342 wxRESET,
343 wxHELP,
344 wxMORE,
345 wxSETUP,
346
347
348 wxCENTRE,
349 wxCENTER,
350 wxSIZE_AUTO_WIDTH,
351 wxSIZE_AUTO_HEIGHT,
352 wxSIZE_AUTO,
353 wxSIZE_USE_EXISTING,
354 wxSIZE_ALLOW_MINUS_ONE,
355 wxPORTRAIT,
356 wxLANDSCAPE,
357 wxPRINT_QUALITY_HIGH,
358 wxPRINT_QUALITY_MEDIUM,
359 wxPRINT_QUALITY_LOW,
360 wxPRINT_QUALITY_DRAFT,
361 wxID_OPEN,
362 wxID_CLOSE,
363 wxID_NEW,
364 wxID_SAVE,
365 wxID_SAVEAS,
366 wxID_REVERT,
367 wxID_EXIT,
368 wxID_UNDO,
369 wxID_REDO,
370 wxID_HELP,
371 wxID_PRINT,
372 wxID_PRINT_SETUP,
373 wxID_PREVIEW,
374 wxID_ABOUT,
375 wxID_HELP_CONTENTS,
376 wxID_HELP_COMMANDS,
377 wxID_HELP_PROCEDURES,
378 wxID_HELP_CONTEXT,
379 wxID_CUT,
380 wxID_COPY,
381 wxID_PASTE,
382 wxID_CLEAR,
383 wxID_FIND,
384 wxID_DUPLICATE,
385 wxID_SELECTALL,
386 wxID_FILE1,
387 wxID_FILE2,
388 wxID_FILE3,
389 wxID_FILE4,
390 wxID_FILE5,
391 wxID_FILE6,
392 wxID_FILE7,
393 wxID_FILE8,
394 wxID_FILE9,
395 wxID_OK,
396 wxID_CANCEL,
397 wxID_APPLY,
398 wxID_YES,
399 wxID_NO,
400 wxID_STATIC,
401 wxID_SEPARATOR,
402 wxID_FORWARD,
403 wxID_BACKWARD,
404 wxID_SETUP,
405 wxID_MORE,
406
407 wxOPEN,
408 wxSAVE,
409 wxHIDE_READONLY,
410 wxOVERWRITE_PROMPT,
411 wxFILE_MUST_EXIST,
412 wxMULTIPLE,
413 wxCHANGE_DIR,
414
415 wxACCEL_ALT,
416 wxACCEL_CTRL,
417 wxACCEL_SHIFT,
418 wxACCEL_NORMAL,
419
420 wxPD_AUTO_HIDE,
421 wxPD_APP_MODAL,
422 wxPD_CAN_ABORT,
423 wxPD_ELAPSED_TIME,
424 wxPD_ESTIMATED_TIME,
425 wxPD_REMAINING_TIME,
426
427 wxMENU_TEAROFF,
428 wxMB_DOCKABLE,
429 wxNO_FULL_REPAINT_ON_RESIZE,
430
431 wxLEFT,
432 wxRIGHT,
433 wxUP,
434 wxDOWN,
435 wxALL,
436 wxTOP,
437 wxBOTTOM,
438
439 wxNORTH,
440 wxSOUTH,
441 wxEAST,
442 wxWEST,
443
444 wxSTRETCH_NOT,
445 wxSHRINK,
446 wxGROW,
447 wxEXPAND,
448
449 wxNB_FIXEDWIDTH,
450 wxNB_LEFT,
451 wxNB_RIGHT,
452 wxNB_BOTTOM,
453 wxNB_MULTILINE,
454
455 wxLI_HORIZONTAL,
456 wxLI_VERTICAL,
457
458 wxHW_SCROLLBAR_NEVER,
459 wxHW_SCROLLBAR_AUTO,
460
461 wxJOYSTICK1,
462 wxJOYSTICK2,
463 wxJOY_BUTTON1,
464 wxJOY_BUTTON2,
465 wxJOY_BUTTON3,
466 wxJOY_BUTTON4,
467 wxJOY_BUTTON_ANY,
468
469 wxWS_EX_VALIDATE_RECURSIVELY,
470
471 };
472
473
474 // // Standard error codes
475 // enum ErrCode
476 // {
477 // ERR_PARAM = (-4000),
478 // ERR_NODATA,
479 // ERR_CANCEL,
480 // ERR_SUCCESS = 0
481 // };
482
483
484 enum {
485 wxDEFAULT ,
486 wxDECORATIVE,
487 wxROMAN,
488 wxSCRIPT,
489 wxSWISS,
490 wxMODERN,
491 wxTELETYPE,
492 wxVARIABLE,
493 wxFIXED,
494 wxNORMAL,
495 wxLIGHT,
496 wxBOLD,
497 wxITALIC,
498 wxSLANT,
499 wxSOLID,
500 wxDOT,
501 wxLONG_DASH,
502 wxSHORT_DASH,
503 wxDOT_DASH,
504 wxUSER_DASH,
505 wxTRANSPARENT,
506 wxSTIPPLE,
507 wxBDIAGONAL_HATCH,
508 wxCROSSDIAG_HATCH,
509 wxFDIAGONAL_HATCH,
510 wxCROSS_HATCH,
511 wxHORIZONTAL_HATCH,
512 wxVERTICAL_HATCH,
513 wxJOIN_BEVEL,
514 wxJOIN_MITER,
515 wxJOIN_ROUND,
516 wxCAP_ROUND,
517 wxCAP_PROJECTING,
518 wxCAP_BUTT
519 };
520
521 typedef enum {
522 wxCLEAR, // 0
523 wxXOR, // src XOR dst
524 wxINVERT, // NOT dst
525 wxOR_REVERSE, // src OR (NOT dst)
526 wxAND_REVERSE,// src AND (NOT dst)
527 wxCOPY, // src
528 wxAND, // src AND dst
529 wxAND_INVERT, // (NOT src) AND dst
530 wxNO_OP, // dst
531 wxNOR, // (NOT src) AND (NOT dst)
532 wxEQUIV, // (NOT src) XOR dst
533 wxSRC_INVERT, // (NOT src)
534 wxOR_INVERT, // (NOT src) OR dst
535 wxNAND, // (NOT src) OR (NOT dst)
536 wxOR, // src OR dst
537 wxSET, // 1
538 // wxSRC_OR, // source _bitmap_ OR destination
539 // wxSRC_AND // source _bitmap_ AND destination
540 } form_ops_t;
541
542 enum _Virtual_keycodes {
543 WXK_BACK = 8,
544 WXK_TAB = 9,
545 WXK_RETURN = 13,
546 WXK_ESCAPE = 27,
547 WXK_SPACE = 32,
548 WXK_DELETE = 127,
549
550 WXK_START = 300,
551 WXK_LBUTTON,
552 WXK_RBUTTON,
553 WXK_CANCEL,
554 WXK_MBUTTON,
555 WXK_CLEAR,
556 WXK_SHIFT,
557 WXK_CONTROL,
558 WXK_MENU,
559 WXK_PAUSE,
560 WXK_CAPITAL,
561 WXK_PRIOR, // Page up
562 WXK_NEXT, // Page down
563 WXK_END,
564 WXK_HOME,
565 WXK_LEFT,
566 WXK_UP,
567 WXK_RIGHT,
568 WXK_DOWN,
569 WXK_SELECT,
570 WXK_PRINT,
571 WXK_EXECUTE,
572 WXK_SNAPSHOT,
573 WXK_INSERT,
574 WXK_HELP,
575 WXK_NUMPAD0,
576 WXK_NUMPAD1,
577 WXK_NUMPAD2,
578 WXK_NUMPAD3,
579 WXK_NUMPAD4,
580 WXK_NUMPAD5,
581 WXK_NUMPAD6,
582 WXK_NUMPAD7,
583 WXK_NUMPAD8,
584 WXK_NUMPAD9,
585 WXK_MULTIPLY,
586 WXK_ADD,
587 WXK_SEPARATOR,
588 WXK_SUBTRACT,
589 WXK_DECIMAL,
590 WXK_DIVIDE,
591 WXK_F1,
592 WXK_F2,
593 WXK_F3,
594 WXK_F4,
595 WXK_F5,
596 WXK_F6,
597 WXK_F7,
598 WXK_F8,
599 WXK_F9,
600 WXK_F10,
601 WXK_F11,
602 WXK_F12,
603 WXK_F13,
604 WXK_F14,
605 WXK_F15,
606 WXK_F16,
607 WXK_F17,
608 WXK_F18,
609 WXK_F19,
610 WXK_F20,
611 WXK_F21,
612 WXK_F22,
613 WXK_F23,
614 WXK_F24,
615 WXK_NUMLOCK,
616 WXK_SCROLL,
617 WXK_PAGEUP,
618 WXK_PAGEDOWN
619 };
620
621
622 // Bitmap flags
623 enum wxBitmapType
624 {
625 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
626 wxBITMAP_TYPE_BMP,
627 wxBITMAP_TYPE_BMP_RESOURCE,
628 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
629 wxBITMAP_TYPE_ICO,
630 wxBITMAP_TYPE_ICO_RESOURCE,
631 wxBITMAP_TYPE_CUR,
632 wxBITMAP_TYPE_CUR_RESOURCE,
633 wxBITMAP_TYPE_XBM,
634 wxBITMAP_TYPE_XBM_DATA,
635 wxBITMAP_TYPE_XPM,
636 wxBITMAP_TYPE_XPM_DATA,
637 wxBITMAP_TYPE_TIF,
638 wxBITMAP_TYPE_TIF_RESOURCE,
639 wxBITMAP_TYPE_GIF,
640 wxBITMAP_TYPE_GIF_RESOURCE,
641 wxBITMAP_TYPE_PNG,
642 wxBITMAP_TYPE_PNG_RESOURCE,
643 wxBITMAP_TYPE_JPEG,
644 wxBITMAP_TYPE_JPEG_RESOURCE,
645 wxBITMAP_TYPE_PNM,
646 wxBITMAP_TYPE_PNM_RESOURCE,
647 wxBITMAP_TYPE_PCX,
648 wxBITMAP_TYPE_PCX_RESOURCE,
649 wxBITMAP_TYPE_PICT,
650 wxBITMAP_TYPE_PICT_RESOURCE,
651 wxBITMAP_TYPE_ICON,
652 wxBITMAP_TYPE_ICON_RESOURCE,
653 wxBITMAP_TYPE_MACCURSOR,
654 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
655 wxBITMAP_TYPE_ANY = 50
656 };
657
658
659
660
661 // Standard cursors
662 enum wxStockCursor
663 {
664 wxCURSOR_NONE, // should be 0
665 wxCURSOR_ARROW,
666 wxCURSOR_BULLSEYE,
667 wxCURSOR_CHAR,
668 wxCURSOR_CROSS,
669 wxCURSOR_HAND,
670 wxCURSOR_IBEAM,
671 wxCURSOR_LEFT_BUTTON,
672 wxCURSOR_MAGNIFIER,
673 wxCURSOR_MIDDLE_BUTTON,
674 wxCURSOR_NO_ENTRY,
675 wxCURSOR_PAINT_BRUSH,
676 wxCURSOR_PENCIL,
677 wxCURSOR_POINT_LEFT,
678 wxCURSOR_POINT_RIGHT,
679 wxCURSOR_QUESTION_ARROW,
680 wxCURSOR_RIGHT_BUTTON,
681 wxCURSOR_SIZENESW,
682 wxCURSOR_SIZENS,
683 wxCURSOR_SIZENWSE,
684 wxCURSOR_SIZEWE,
685 wxCURSOR_SIZING,
686 wxCURSOR_SPRAYCAN,
687 wxCURSOR_WAIT,
688 wxCURSOR_WATCH,
689 wxCURSOR_BLANK,
690 wxCURSOR_DEFAULT,
691 // // Not yet implemented for Windows
692 // wxCURSOR_CROSS_REVERSE,
693 // wxCURSOR_DOUBLE_ARROW,
694 // wxCURSOR_BASED_ARROW_UP,
695 // wxCURSOR_BASED_ARROW_DOWN,
696
697 wxCURSOR_ARROWWAIT,
698 wxCURSOR_MAX
699 };
700
701
702
703 typedef enum {
704 wxPAPER_NONE, // Use specific dimensions
705 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
706 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
707 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
708 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
709 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
710 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
711 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
712 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
713 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
714 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
715 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
716 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
717 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
718 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
719 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
720 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
721 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
722 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
723 wxPAPER_10X14, // 10-by-14-inch sheet
724 wxPAPER_11X17, // 11-by-17-inch sheet
725 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
726 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
727 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
728 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
729 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
730 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
731 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
732 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
733 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
734 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
735 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
736 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
737 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
738 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
739 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
740 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
741 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
742 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
743 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
744 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
745 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
746
747 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
748 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
749 wxPAPER_9X11, // 9 x 11 in
750 wxPAPER_10X11, // 10 x 11 in
751 wxPAPER_15X11, // 15 x 11 in
752 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
753 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
754 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
755 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
756 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
757 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
758 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
759 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
760 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
761 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
762 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
763 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
764 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
765 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
766 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
767 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
768 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
769 wxPAPER_A2, // A2 420 x 594 mm
770 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
771 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
772
773 } wxPaperSize ;
774
775 typedef enum {
776 wxDUPLEX_SIMPLEX, // Non-duplex
777 wxDUPLEX_HORIZONTAL,
778 wxDUPLEX_VERTICAL
779 } wxDuplexMode;
780
781
782
783 #define FALSE 0
784 #define false 0
785 #define TRUE 1
786 #define true 1
787
788 const char* wxVERSION_STRING;
789
790 //---------------------------------------------------------------------------
791 //---------------------------------------------------------------------------
792
793 /*
794 * Event types
795 *
796 */
797 enum wxEventType {
798 wxEVT_NULL = 0,
799 wxEVT_FIRST = 10000,
800
801 // New names
802 wxEVT_COMMAND_BUTTON_CLICKED,
803 wxEVT_COMMAND_CHECKBOX_CLICKED,
804 wxEVT_COMMAND_CHOICE_SELECTED,
805 wxEVT_COMMAND_LISTBOX_SELECTED,
806 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
807 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
808 wxEVT_COMMAND_SPINCTRL_UPDATED,
809 wxEVT_COMMAND_TEXT_UPDATED,
810 wxEVT_COMMAND_TEXT_ENTER,
811 wxEVT_COMMAND_TEXT_URL,
812 wxEVT_COMMAND_TEXT_MAXLEN,
813 wxEVT_COMMAND_MENU_SELECTED,
814 wxEVT_COMMAND_SLIDER_UPDATED,
815 wxEVT_COMMAND_RADIOBOX_SELECTED,
816 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
817 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
818 wxEVT_COMMAND_SCROLLBAR_UPDATED,
819 wxEVT_COMMAND_VLBOX_SELECTED,
820 wxEVT_COMMAND_COMBOBOX_SELECTED,
821 wxEVT_COMMAND_TOOL_CLICKED,
822 wxEVT_COMMAND_TOOL_RCLICKED,
823 wxEVT_COMMAND_TOOL_ENTER,
824 wxEVT_SET_FOCUS,
825 wxEVT_KILL_FOCUS,
826 wxEVT_MOUSEWHEEL,
827
828 /* Mouse event types */
829 wxEVT_LEFT_DOWN,
830 wxEVT_LEFT_UP,
831 wxEVT_MIDDLE_DOWN,
832 wxEVT_MIDDLE_UP,
833 wxEVT_RIGHT_DOWN,
834 wxEVT_RIGHT_UP,
835 wxEVT_MOTION,
836 wxEVT_ENTER_WINDOW,
837 wxEVT_LEAVE_WINDOW,
838 wxEVT_LEFT_DCLICK,
839 wxEVT_MIDDLE_DCLICK,
840 wxEVT_RIGHT_DCLICK,
841
842 // Non-client mouse events
843 wxEVT_NC_LEFT_DOWN,
844 wxEVT_NC_LEFT_UP,
845 wxEVT_NC_MIDDLE_DOWN,
846 wxEVT_NC_MIDDLE_UP,
847 wxEVT_NC_RIGHT_DOWN,
848 wxEVT_NC_RIGHT_UP,
849 wxEVT_NC_MOTION,
850 wxEVT_NC_ENTER_WINDOW,
851 wxEVT_NC_LEAVE_WINDOW,
852 wxEVT_NC_LEFT_DCLICK,
853 wxEVT_NC_MIDDLE_DCLICK,
854 wxEVT_NC_RIGHT_DCLICK,
855
856 /* Character input event type */
857 wxEVT_CHAR,
858 wxEVT_KEY_DOWN,
859 wxEVT_KEY_UP,
860 wxEVT_CHAR_HOOK,
861
862 /*
863 * Scrollbar event identifiers
864 */
865 wxEVT_SCROLL_TOP,
866 wxEVT_SCROLL_BOTTOM,
867 wxEVT_SCROLL_LINEUP,
868 wxEVT_SCROLL_LINEDOWN,
869 wxEVT_SCROLL_PAGEUP,
870 wxEVT_SCROLL_PAGEDOWN,
871 wxEVT_SCROLL_THUMBTRACK,
872 wxEVT_SCROLL_THUMBRELEASE,
873
874 /*
875 * Scrolled Window
876 */
877 wxEVT_SCROLLWIN_TOP,
878 wxEVT_SCROLLWIN_BOTTOM,
879 wxEVT_SCROLLWIN_LINEUP,
880 wxEVT_SCROLLWIN_LINEDOWN,
881 wxEVT_SCROLLWIN_PAGEUP,
882 wxEVT_SCROLLWIN_PAGEDOWN,
883 wxEVT_SCROLLWIN_THUMBTRACK,
884 wxEVT_SCROLLWIN_THUMBRELEASE,
885
886 wxEVT_SIZE = wxEVT_FIRST + 200,
887 wxEVT_MOVE,
888 wxEVT_CLOSE_WINDOW,
889 wxEVT_END_SESSION,
890 wxEVT_QUERY_END_SESSION,
891 wxEVT_ACTIVATE_APP,
892 wxEVT_POWER,
893 wxEVT_ACTIVATE,
894 wxEVT_CREATE,
895 wxEVT_DESTROY,
896 wxEVT_SHOW,
897 wxEVT_ICONIZE,
898 wxEVT_MAXIMIZE,
899 wxEVT_MOUSE_CAPTURE_CHANGED,
900 wxEVT_PAINT,
901 wxEVT_ERASE_BACKGROUND,
902 wxEVT_NC_PAINT,
903 wxEVT_PAINT_ICON,
904 wxEVT_MENU_CHAR,
905 wxEVT_MENU_INIT,
906 wxEVT_MENU_HIGHLIGHT,
907 wxEVT_POPUP_MENU_INIT,
908 wxEVT_SYS_COLOUR_CHANGED,
909 wxEVT_SETTING_CHANGED,
910 wxEVT_QUERY_NEW_PALETTE,
911 wxEVT_PALETTE_CHANGED,
912 wxEVT_JOY_BUTTON_DOWN,
913 wxEVT_JOY_BUTTON_UP,
914 wxEVT_JOY_MOVE,
915 wxEVT_JOY_ZMOVE,
916 wxEVT_DROP_FILES,
917 wxEVT_DRAW_ITEM,
918 wxEVT_MEASURE_ITEM,
919 wxEVT_COMPARE_ITEM,
920 wxEVT_INIT_DIALOG,
921 wxEVT_IDLE,
922 wxEVT_UPDATE_UI,
923
924
925 /* Generic command events */
926 // Note: a click is a higher-level event
927 // than button down/up
928 wxEVT_COMMAND_LEFT_CLICK,
929 wxEVT_COMMAND_LEFT_DCLICK,
930 wxEVT_COMMAND_RIGHT_CLICK,
931 wxEVT_COMMAND_RIGHT_DCLICK,
932 wxEVT_COMMAND_SET_FOCUS,
933 wxEVT_COMMAND_KILL_FOCUS,
934 wxEVT_COMMAND_ENTER,
935
936 wxEVT_NAVIGATION_KEY,
937
938 wxEVT_TIMER,
939
940 };
941
942
943
944
945 //----------------------------------------------------------------------