]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
fixed a typo and uncommented some methods
[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 wxDEFAULT_FRAME_STYLE,
216 wxDEFAULT_DIALOG_STYLE,
217
218 wxFRAME_TOOL_WINDOW,
219 wxFRAME_FLOAT_ON_PARENT,
220 wxFRAME_NO_WINDOW_MENU,
221 wxED_CLIENT_MARGIN,
222 wxED_BUTTONS_BOTTOM,
223 wxED_BUTTONS_RIGHT,
224 wxED_STATIC_LINE,
225 wxEXT_DIALOG_STYLE,
226
227 wxCLIP_CHILDREN,
228
229 wxRETAINED,
230 wxBACKINGSTORE,
231 wxTB_3DBUTTONS,
232 wxTB_HORIZONTAL,
233 wxTB_VERTICAL,
234 wxTB_FLAT,
235 wxTB_DOCKABLE,
236 wxCOLOURED,
237 wxFIXED_LENGTH,
238 wxALIGN_LEFT,
239 wxALIGN_CENTER_HORIZONTAL,
240 wxALIGN_CENTRE_HORIZONTAL,
241 wxALIGN_RIGHT,
242 wxALIGN_BOTTOM,
243 wxALIGN_CENTER_VERTICAL,
244 wxALIGN_CENTRE_VERTICAL,
245 wxALIGN_TOP,
246 wxALIGN_CENTER,
247 wxALIGN_CENTRE,
248 wxSHAPED,
249 wxLB_NEEDED_SB,
250 wxLB_ALWAYS_SB,
251 wxLB_SORT,
252 wxLB_SINGLE,
253 wxLB_MULTIPLE,
254 wxLB_EXTENDED,
255 wxLB_OWNERDRAW,
256 wxLB_HSCROLL,
257 wxPROCESS_ENTER,
258 wxPASSWORD,
259 wxTE_PROCESS_ENTER,
260 wxTE_PROCESS_TAB,
261 wxTE_PASSWORD,
262 wxTE_READONLY,
263 wxTE_RICH,
264 wxTE_MULTILINE,
265 wxTE_AUTO_SCROLL,
266 wxTE_NO_VSCROLL,
267 wxCB_SIMPLE,
268 wxCB_DROPDOWN,
269 wxCB_SORT,
270 wxCB_READONLY,
271 wxRA_HORIZONTAL,
272 wxRA_VERTICAL,
273 wxRA_SPECIFY_ROWS,
274 wxRA_SPECIFY_COLS,
275 wxRB_GROUP,
276 wxGA_PROGRESSBAR,
277 wxGA_HORIZONTAL,
278 wxGA_VERTICAL,
279 wxGA_SMOOTH,
280 wxSL_HORIZONTAL,
281 wxSL_VERTICAL,
282 wxSL_AUTOTICKS,
283 wxSL_LABELS,
284 wxSL_LEFT,
285 wxSL_TOP,
286 wxSL_RIGHT,
287 wxSL_BOTTOM,
288 wxSL_BOTH,
289 wxSL_SELRANGE,
290 wxSB_HORIZONTAL,
291 wxSB_VERTICAL,
292 wxST_SIZEGRIP,
293 wxST_NO_AUTORESIZE,
294 wxBU_AUTODRAW,
295 wxBU_NOAUTODRAW,
296 wxTR_HAS_BUTTONS,
297 wxTR_EDIT_LABELS,
298 wxTR_LINES_AT_ROOT,
299 wxTR_MULTIPLE,
300 wxTR_SINGLE,
301 wxTR_HAS_VARIABLE_ROW_HEIGHT,
302 wxLC_ICON,
303 wxLC_SMALL_ICON,
304 wxLC_LIST,
305 wxLC_REPORT,
306 wxLC_ALIGN_TOP,
307 wxLC_ALIGN_LEFT,
308 wxLC_AUTOARRANGE,
309 wxLC_USER_TEXT,
310 wxLC_EDIT_LABELS,
311 wxLC_NO_HEADER,
312 wxLC_NO_SORT_HEADER,
313 wxLC_SINGLE_SEL,
314 wxLC_SORT_ASCENDING,
315 wxLC_SORT_DESCENDING,
316 wxLC_MASK_TYPE,
317 wxLC_MASK_ALIGN,
318 wxLC_MASK_SORT,
319 wxSP_VERTICAL,
320 wxSP_HORIZONTAL,
321 wxSP_ARROW_KEYS,
322 wxSP_WRAP,
323 wxSP_NOBORDER,
324 wxSP_3D,
325 wxSP_BORDER,
326 wxSP_LIVE_UPDATE,
327 wxSP_PERMIT_UNSPLIT,
328 wxFLOOD_SURFACE,
329 wxFLOOD_BORDER,
330 wxODDEVEN_RULE,
331 wxWINDING_RULE,
332 wxTOOL_TOP,
333 wxTOOL_BOTTOM,
334 wxTOOL_LEFT,
335 wxTOOL_RIGHT,
336 wxOK,
337 wxYES_NO,
338 wxCANCEL,
339 wxYES,
340 wxNO,
341 wxNO_DEFAULT,
342 wxYES_DEFAULT,
343 wxICON_EXCLAMATION,
344 wxICON_HAND,
345 wxICON_QUESTION,
346 wxICON_INFORMATION,
347 wxICON_STOP,
348 wxICON_ASTERISK,
349 wxICON_MASK,
350 wxICON_WARNING,
351 wxICON_ERROR,
352
353 wxFORWARD,
354 wxBACKWARD,
355 wxRESET,
356 wxHELP,
357 wxMORE,
358 wxSETUP,
359
360 wxCENTRE,
361 wxCENTER,
362 wxSIZE_AUTO_WIDTH,
363 wxSIZE_AUTO_HEIGHT,
364 wxSIZE_AUTO,
365 wxSIZE_USE_EXISTING,
366 wxSIZE_ALLOW_MINUS_ONE,
367 wxPORTRAIT,
368 wxLANDSCAPE,
369 wxPRINT_QUALITY_HIGH,
370 wxPRINT_QUALITY_MEDIUM,
371 wxPRINT_QUALITY_LOW,
372 wxPRINT_QUALITY_DRAFT,
373 wxID_OPEN,
374 wxID_CLOSE,
375 wxID_NEW,
376 wxID_SAVE,
377 wxID_SAVEAS,
378 wxID_REVERT,
379 wxID_EXIT,
380 wxID_UNDO,
381 wxID_REDO,
382 wxID_HELP,
383 wxID_PRINT,
384 wxID_PRINT_SETUP,
385 wxID_PREVIEW,
386 wxID_ABOUT,
387 wxID_HELP_CONTENTS,
388 wxID_HELP_COMMANDS,
389 wxID_HELP_PROCEDURES,
390 wxID_HELP_CONTEXT,
391 wxID_CUT,
392 wxID_COPY,
393 wxID_PASTE,
394 wxID_CLEAR,
395 wxID_FIND,
396 wxID_FILE1,
397 wxID_FILE2,
398 wxID_FILE3,
399 wxID_FILE4,
400 wxID_FILE5,
401 wxID_FILE6,
402 wxID_FILE7,
403 wxID_FILE8,
404 wxID_FILE9,
405 wxID_OK,
406 wxID_CANCEL,
407 wxID_APPLY,
408 wxID_YES,
409 wxID_NO,
410 wxID_STATIC,
411 wxID_SEPARATOR,
412
413 wxBITMAP_TYPE_BMP,
414 wxBITMAP_TYPE_BMP_RESOURCE,
415 wxBITMAP_TYPE_ICO,
416 wxBITMAP_TYPE_ICO_RESOURCE,
417 wxBITMAP_TYPE_CUR,
418 wxBITMAP_TYPE_CUR_RESOURCE,
419 wxBITMAP_TYPE_XBM,
420 wxBITMAP_TYPE_XBM_DATA,
421 wxBITMAP_TYPE_XPM,
422 wxBITMAP_TYPE_XPM_DATA,
423 wxBITMAP_TYPE_TIF,
424 wxBITMAP_TYPE_TIF_RESOURCE,
425 wxBITMAP_TYPE_GIF,
426 wxBITMAP_TYPE_GIF_RESOURCE,
427 wxBITMAP_TYPE_PNG,
428 wxBITMAP_TYPE_PNG_RESOURCE,
429 wxBITMAP_TYPE_ANY,
430 wxBITMAP_TYPE_RESOURCE,
431 wxBITMAP_TYPE_JPEG,
432 wxBITMAP_TYPE_PCX,
433
434 wxOPEN,
435 wxSAVE,
436 wxHIDE_READONLY,
437 wxOVERWRITE_PROMPT,
438 wxFILE_MUST_EXIST,
439 wxMULTIPLE,
440
441 wxACCEL_ALT,
442 wxACCEL_CTRL,
443 wxACCEL_SHIFT,
444 wxACCEL_NORMAL,
445
446 wxPD_AUTO_HIDE,
447 wxPD_APP_MODAL,
448 wxPD_CAN_ABORT,
449 wxPD_ELAPSED_TIME,
450 wxPD_ESTIMATED_TIME,
451 wxPD_REMAINING_TIME,
452
453 wxMENU_TEAROFF,
454 wxMB_DOCKABLE,
455 wxNO_FULL_REPAINT_ON_RESIZE,
456
457 wxLEFT,
458 wxRIGHT,
459 wxUP,
460 wxDOWN,
461 wxALL,
462 wxTOP,
463 wxBOTTOM,
464
465 wxNORTH,
466 wxSOUTH,
467 wxEAST,
468 wxWEST,
469
470 wxSTRETCH_NOT,
471 wxSHRINK,
472 wxGROW,
473 wxEXPAND,
474
475 wxNB_FIXEDWIDTH,
476 wxNB_LEFT,
477 wxNB_RIGHT,
478 wxNB_BOTTOM,
479
480 wxLI_HORIZONTAL,
481 wxLI_VERTICAL,
482
483 wxHW_SCROLLBAR_NEVER,
484 wxHW_SCROLLBAR_AUTO,
485
486 };
487
488
489 // // Standard error codes
490 // enum ErrCode
491 // {
492 // ERR_PARAM = (-4000),
493 // ERR_NODATA,
494 // ERR_CANCEL,
495 // ERR_SUCCESS = 0
496 // };
497
498
499 enum {
500 wxDEFAULT ,
501 wxDECORATIVE,
502 wxROMAN,
503 wxSCRIPT,
504 wxSWISS,
505 wxMODERN,
506 wxTELETYPE,
507 wxVARIABLE,
508 wxFIXED,
509 wxNORMAL,
510 wxLIGHT,
511 wxBOLD,
512 wxITALIC,
513 wxSLANT,
514 wxSOLID,
515 wxDOT,
516 wxLONG_DASH,
517 wxSHORT_DASH,
518 wxDOT_DASH,
519 wxUSER_DASH,
520 wxTRANSPARENT,
521 wxSTIPPLE,
522 wxBDIAGONAL_HATCH,
523 wxCROSSDIAG_HATCH,
524 wxFDIAGONAL_HATCH,
525 wxCROSS_HATCH,
526 wxHORIZONTAL_HATCH,
527 wxVERTICAL_HATCH,
528 wxJOIN_BEVEL,
529 wxJOIN_MITER,
530 wxJOIN_ROUND,
531 wxCAP_ROUND,
532 wxCAP_PROJECTING,
533 wxCAP_BUTT
534 };
535
536 typedef enum {
537 wxCLEAR, // 0
538 wxXOR, // src XOR dst
539 wxINVERT, // NOT dst
540 wxOR_REVERSE, // src OR (NOT dst)
541 wxAND_REVERSE,// src AND (NOT dst)
542 wxCOPY, // src
543 wxAND, // src AND dst
544 wxAND_INVERT, // (NOT src) AND dst
545 wxNO_OP, // dst
546 wxNOR, // (NOT src) AND (NOT dst)
547 wxEQUIV, // (NOT src) XOR dst
548 wxSRC_INVERT, // (NOT src)
549 wxOR_INVERT, // (NOT src) OR dst
550 wxNAND, // (NOT src) OR (NOT dst)
551 wxOR, // src OR dst
552 wxSET, // 1
553 // wxSRC_OR, // source _bitmap_ OR destination
554 // wxSRC_AND // source _bitmap_ AND destination
555 } form_ops_t;
556
557 enum _Virtual_keycodes {
558 WXK_BACK = 8,
559 WXK_TAB = 9,
560 WXK_RETURN = 13,
561 WXK_ESCAPE = 27,
562 WXK_SPACE = 32,
563 WXK_DELETE = 127,
564
565 WXK_START = 300,
566 WXK_LBUTTON,
567 WXK_RBUTTON,
568 WXK_CANCEL,
569 WXK_MBUTTON,
570 WXK_CLEAR,
571 WXK_SHIFT,
572 WXK_CONTROL,
573 WXK_MENU,
574 WXK_PAUSE,
575 WXK_CAPITAL,
576 WXK_PRIOR, // Page up
577 WXK_NEXT, // Page down
578 WXK_END,
579 WXK_HOME,
580 WXK_LEFT,
581 WXK_UP,
582 WXK_RIGHT,
583 WXK_DOWN,
584 WXK_SELECT,
585 WXK_PRINT,
586 WXK_EXECUTE,
587 WXK_SNAPSHOT,
588 WXK_INSERT,
589 WXK_HELP,
590 WXK_NUMPAD0,
591 WXK_NUMPAD1,
592 WXK_NUMPAD2,
593 WXK_NUMPAD3,
594 WXK_NUMPAD4,
595 WXK_NUMPAD5,
596 WXK_NUMPAD6,
597 WXK_NUMPAD7,
598 WXK_NUMPAD8,
599 WXK_NUMPAD9,
600 WXK_MULTIPLY,
601 WXK_ADD,
602 WXK_SEPARATOR,
603 WXK_SUBTRACT,
604 WXK_DECIMAL,
605 WXK_DIVIDE,
606 WXK_F1,
607 WXK_F2,
608 WXK_F3,
609 WXK_F4,
610 WXK_F5,
611 WXK_F6,
612 WXK_F7,
613 WXK_F8,
614 WXK_F9,
615 WXK_F10,
616 WXK_F11,
617 WXK_F12,
618 WXK_F13,
619 WXK_F14,
620 WXK_F15,
621 WXK_F16,
622 WXK_F17,
623 WXK_F18,
624 WXK_F19,
625 WXK_F20,
626 WXK_F21,
627 WXK_F22,
628 WXK_F23,
629 WXK_F24,
630 WXK_NUMLOCK,
631 WXK_SCROLL,
632 WXK_PAGEUP,
633 WXK_PAGEDOWN
634 };
635
636 typedef enum {
637 wxCURSOR_NONE = 0,
638 wxCURSOR_ARROW = 1,
639 wxCURSOR_BULLSEYE,
640 wxCURSOR_CHAR,
641 wxCURSOR_CROSS,
642 wxCURSOR_HAND,
643 wxCURSOR_IBEAM,
644 wxCURSOR_LEFT_BUTTON,
645 wxCURSOR_MAGNIFIER,
646 wxCURSOR_MIDDLE_BUTTON,
647 wxCURSOR_NO_ENTRY,
648 wxCURSOR_PAINT_BRUSH,
649 wxCURSOR_PENCIL,
650 wxCURSOR_POINT_LEFT,
651 wxCURSOR_POINT_RIGHT,
652 wxCURSOR_QUESTION_ARROW,
653 wxCURSOR_RIGHT_BUTTON,
654 wxCURSOR_SIZENESW,
655 wxCURSOR_SIZENS,
656 wxCURSOR_SIZENWSE,
657 wxCURSOR_SIZEWE,
658 wxCURSOR_SIZING,
659 wxCURSOR_SPRAYCAN,
660 wxCURSOR_WAIT,
661 wxCURSOR_WATCH,
662 wxCURSOR_BLANK
663 // #ifndef __WXMSW__
664 // /* Not yet implemented for Windows */
665 // , wxCURSOR_CROSS_REVERSE,
666 // wxCURSOR_DOUBLE_ARROW,
667 // wxCURSOR_BASED_ARROW_UP,
668 // wxCURSOR_BASED_ARROW_DOWN
669 // #endif
670 } _standard_cursors_t;
671
672
673
674 typedef enum {
675 wxPAPER_NONE, // Use specific dimensions
676 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
677 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
678 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
679 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
680 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
681 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
682 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
683 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
684 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
685 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
686 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
687 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
688 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
689 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
690 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
691 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
692 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
693 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
694 wxPAPER_10X14, // 10-by-14-inch sheet
695 wxPAPER_11X17, // 11-by-17-inch sheet
696 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
697 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
698 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
699 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
700 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
701 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
702 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
703 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
704 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
705 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
706 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
707 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
708 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
709 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
710 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
711 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
712 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
713 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
714 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
715 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
716 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
717
718 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
719 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
720 wxPAPER_9X11, // 9 x 11 in
721 wxPAPER_10X11, // 10 x 11 in
722 wxPAPER_15X11, // 15 x 11 in
723 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
724 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
725 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
726 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
727 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
728 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
729 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
730 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
731 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
732 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
733 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
734 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
735 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
736 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
737 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
738 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
739 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
740 wxPAPER_A2, // A2 420 x 594 mm
741 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
742 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
743
744 } wxPaperSize ;
745
746 typedef enum {
747 wxDUPLEX_SIMPLEX, // Non-duplex
748 wxDUPLEX_HORIZONTAL,
749 wxDUPLEX_VERTICAL
750 } wxDuplexMode;
751
752
753
754 #define FALSE 0
755 #define false 0
756 #define TRUE 1
757 #define true 1
758
759 const char* wxVERSION_STRING;
760
761 //---------------------------------------------------------------------------
762 //---------------------------------------------------------------------------
763
764 /*
765 * Event types
766 *
767 */
768 enum wxEventType {
769 wxEVT_NULL = 0,
770 wxEVT_FIRST = 10000,
771
772 // New names
773 wxEVT_COMMAND_BUTTON_CLICKED,
774 wxEVT_COMMAND_CHECKBOX_CLICKED,
775 wxEVT_COMMAND_CHOICE_SELECTED,
776 wxEVT_COMMAND_LISTBOX_SELECTED,
777 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
778 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
779 wxEVT_COMMAND_SPINCTRL_UPDATED,
780 wxEVT_COMMAND_TEXT_UPDATED,
781 wxEVT_COMMAND_TEXT_ENTER,
782 wxEVT_COMMAND_MENU_SELECTED,
783 wxEVT_COMMAND_SLIDER_UPDATED,
784 wxEVT_COMMAND_RADIOBOX_SELECTED,
785 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
786 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
787 wxEVT_COMMAND_SCROLLBAR_UPDATED,
788 wxEVT_COMMAND_VLBOX_SELECTED,
789 wxEVT_COMMAND_COMBOBOX_SELECTED,
790 wxEVT_COMMAND_TOOL_CLICKED,
791 wxEVT_COMMAND_TOOL_RCLICKED,
792 wxEVT_COMMAND_TOOL_ENTER,
793 wxEVT_SET_FOCUS,
794 wxEVT_KILL_FOCUS,
795
796 /* Mouse event types */
797 wxEVT_LEFT_DOWN,
798 wxEVT_LEFT_UP,
799 wxEVT_MIDDLE_DOWN,
800 wxEVT_MIDDLE_UP,
801 wxEVT_RIGHT_DOWN,
802 wxEVT_RIGHT_UP,
803 wxEVT_MOTION,
804 wxEVT_ENTER_WINDOW,
805 wxEVT_LEAVE_WINDOW,
806 wxEVT_LEFT_DCLICK,
807 wxEVT_MIDDLE_DCLICK,
808 wxEVT_RIGHT_DCLICK,
809
810 // Non-client mouse events
811 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
812 wxEVT_NC_LEFT_UP,
813 wxEVT_NC_MIDDLE_DOWN,
814 wxEVT_NC_MIDDLE_UP,
815 wxEVT_NC_RIGHT_DOWN,
816 wxEVT_NC_RIGHT_UP,
817 wxEVT_NC_MOTION,
818 wxEVT_NC_ENTER_WINDOW,
819 wxEVT_NC_LEAVE_WINDOW,
820 wxEVT_NC_LEFT_DCLICK,
821 wxEVT_NC_MIDDLE_DCLICK,
822 wxEVT_NC_RIGHT_DCLICK,
823
824 /* Character input event type */
825 wxEVT_CHAR,
826 wxEVT_KEY_DOWN,
827 wxEVT_KEY_UP,
828 wxEVT_CHAR_HOOK,
829
830 /*
831 * Scrollbar event identifiers
832 */
833 wxEVT_SCROLL_TOP,
834 wxEVT_SCROLL_BOTTOM,
835 wxEVT_SCROLL_LINEUP,
836 wxEVT_SCROLL_LINEDOWN,
837 wxEVT_SCROLL_PAGEUP,
838 wxEVT_SCROLL_PAGEDOWN,
839 wxEVT_SCROLL_THUMBTRACK,
840 wxEVT_SCROLL_THUMBRELEASE,
841
842 /*
843 * Scrolled Window
844 */
845 wxEVT_SCROLLWIN_TOP,
846 wxEVT_SCROLLWIN_BOTTOM,
847 wxEVT_SCROLLWIN_LINEUP,
848 wxEVT_SCROLLWIN_LINEDOWN,
849 wxEVT_SCROLLWIN_PAGEUP,
850 wxEVT_SCROLLWIN_PAGEDOWN,
851 wxEVT_SCROLLWIN_THUMBTRACK,
852 wxEVT_SCROLLWIN_THUMBRELEASE,
853
854 wxEVT_SIZE = wxEVT_FIRST + 200,
855 wxEVT_MOVE,
856 wxEVT_CLOSE_WINDOW,
857 wxEVT_END_SESSION,
858 wxEVT_QUERY_END_SESSION,
859 wxEVT_ACTIVATE_APP,
860 wxEVT_POWER,
861 wxEVT_ACTIVATE,
862 wxEVT_CREATE,
863 wxEVT_DESTROY,
864 wxEVT_SHOW,
865 wxEVT_ICONIZE,
866 wxEVT_MAXIMIZE,
867 wxEVT_MOUSE_CAPTURE_CHANGED,
868 wxEVT_PAINT,
869 wxEVT_ERASE_BACKGROUND,
870 wxEVT_NC_PAINT,
871 wxEVT_PAINT_ICON,
872 wxEVT_MENU_CHAR,
873 wxEVT_MENU_INIT,
874 wxEVT_MENU_HIGHLIGHT,
875 wxEVT_POPUP_MENU_INIT,
876 wxEVT_CONTEXT_MENU,
877 wxEVT_SYS_COLOUR_CHANGED,
878 wxEVT_SETTING_CHANGED,
879 wxEVT_QUERY_NEW_PALETTE,
880 wxEVT_PALETTE_CHANGED,
881 wxEVT_JOY_BUTTON_DOWN,
882 wxEVT_JOY_BUTTON_UP,
883 wxEVT_JOY_MOVE,
884 wxEVT_JOY_ZMOVE,
885 wxEVT_DROP_FILES,
886 wxEVT_DRAW_ITEM,
887 wxEVT_MEASURE_ITEM,
888 wxEVT_COMPARE_ITEM,
889 wxEVT_INIT_DIALOG,
890 wxEVT_IDLE,
891 wxEVT_UPDATE_UI,
892
893
894 /* Generic command events */
895 // Note: a click is a higher-level event
896 // than button down/up
897 wxEVT_COMMAND_LEFT_CLICK,
898 wxEVT_COMMAND_LEFT_DCLICK,
899 wxEVT_COMMAND_RIGHT_CLICK,
900 wxEVT_COMMAND_RIGHT_DCLICK,
901 wxEVT_COMMAND_SET_FOCUS,
902 wxEVT_COMMAND_KILL_FOCUS,
903 wxEVT_COMMAND_ENTER,
904
905 /* Tree control event types */
906 wxEVT_COMMAND_TREE_BEGIN_DRAG,
907 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
908 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
909 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
910 wxEVT_COMMAND_TREE_DELETE_ITEM,
911 wxEVT_COMMAND_TREE_GET_INFO,
912 wxEVT_COMMAND_TREE_SET_INFO,
913 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
914 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
915 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
916 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
917 wxEVT_COMMAND_TREE_SEL_CHANGED,
918 wxEVT_COMMAND_TREE_SEL_CHANGING,
919 wxEVT_COMMAND_TREE_KEY_DOWN,
920 wxEVT_COMMAND_TREE_ITEM_ACTIVATED,
921 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
922 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK,
923
924 /* List control event types */
925 wxEVT_COMMAND_LIST_BEGIN_DRAG,
926 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
927 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
928 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
929 wxEVT_COMMAND_LIST_DELETE_ITEM,
930 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
931 wxEVT_COMMAND_LIST_GET_INFO,
932 wxEVT_COMMAND_LIST_SET_INFO,
933 wxEVT_COMMAND_LIST_ITEM_SELECTED,
934 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
935 wxEVT_COMMAND_LIST_KEY_DOWN,
936 wxEVT_COMMAND_LIST_INSERT_ITEM,
937 wxEVT_COMMAND_LIST_COL_CLICK,
938 wxEVT_COMMAND_LIST_ITEM_ACTIVATED,
939 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK,
940 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
941
942
943 /* Tab and notebook control event types */
944 wxEVT_COMMAND_TAB_SEL_CHANGED,
945 wxEVT_COMMAND_TAB_SEL_CHANGING,
946 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
947 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
948
949 /* splitter window */
950 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
951 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
952 wxEVT_COMMAND_SPLITTER_UNSPLIT,
953 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
954
955 wxEVT_NAVIGATION_KEY,
956
957 wxEVT_TIMER,
958
959 wxEVT_END_PROCESS,
960
961 };
962
963
964
965
966 //----------------------------------------------------------------------