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