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