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