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