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