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