]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
added --with-wxdir=DIR option
[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 wxPOPUP_WINDOW,
195 wxHORIZONTAL,
196 wxVERTICAL,
197 wxBOTH,
198 wxCENTER_FRAME,
199 wxCENTRE_ON_SCREEN,
200 wxCENTER_ON_SCREEN,
201
202 wxSTAY_ON_TOP,
203 wxICONIZE,
204 wxMINIMIZE,
205 wxMAXIMIZE,
206 wxTHICK_FRAME,
207 wxSYSTEM_MENU,
208 wxMINIMIZE_BOX,
209 wxMAXIMIZE_BOX,
210 wxTINY_CAPTION_HORIZ,
211 wxTINY_CAPTION_VERT,
212 wxRESIZE_BOX,
213 wxRESIZE_BORDER,
214 wxDIALOG_MODAL,
215 wxDIALOG_MODELESS,
216 wxDIALOG_NO_PARENT,
217 wxDEFAULT_FRAME_STYLE,
218 wxDEFAULT_DIALOG_STYLE,
219
220 wxFRAME_TOOL_WINDOW,
221 wxFRAME_FLOAT_ON_PARENT,
222 wxFRAME_NO_WINDOW_MENU,
223 wxFRAME_NO_TASKBAR,
224
225 wxED_CLIENT_MARGIN,
226 wxED_BUTTONS_BOTTOM,
227 wxED_BUTTONS_RIGHT,
228 wxED_STATIC_LINE,
229 wxEXT_DIALOG_STYLE,
230
231 wxCLIP_CHILDREN,
232 wxCLIP_SIBLINGS,
233
234 wxRETAINED,
235 wxBACKINGSTORE,
236
237 wxTB_HORIZONTAL,
238 wxTB_VERTICAL,
239 wxTB_3DBUTTONS,
240 wxTB_FLAT,
241 wxTB_DOCKABLE,
242 wxTB_NOICONS,
243 wxTB_TEXT,
244 wxTB_NODIVIDER,
245 wxTB_NOALIGN,
246
247 wxCOLOURED,
248 wxFIXED_LENGTH,
249 wxALIGN_LEFT,
250 wxALIGN_CENTER_HORIZONTAL,
251 wxALIGN_CENTRE_HORIZONTAL,
252 wxALIGN_RIGHT,
253 wxALIGN_BOTTOM,
254 wxALIGN_CENTER_VERTICAL,
255 wxALIGN_CENTRE_VERTICAL,
256 wxALIGN_TOP,
257 wxALIGN_CENTER,
258 wxALIGN_CENTRE,
259 wxSHAPED,
260 wxADJUST_MINSIZE,
261
262 wxLB_NEEDED_SB,
263 wxLB_ALWAYS_SB,
264 wxLB_SORT,
265 wxLB_SINGLE,
266 wxLB_MULTIPLE,
267 wxLB_EXTENDED,
268 wxLB_OWNERDRAW,
269 wxLB_HSCROLL,
270 wxPROCESS_ENTER,
271 wxPASSWORD,
272
273 wxTE_READONLY,
274 wxTE_MULTILINE,
275 wxTE_PROCESS_TAB,
276 wxTE_RICH,
277 wxTE_RICH2,
278 wxTE_NO_VSCROLL,
279 wxTE_AUTO_SCROLL,
280 wxTE_PROCESS_ENTER,
281 wxTE_PASSWORD,
282 wxTE_AUTO_URL,
283 wxTE_NOHIDESEL,
284 wxTE_DONTWRAP,
285 wxTE_LINEWRAP,
286 wxTE_WORDWRAP,
287 wxTE_LEFT,
288 wxTE_RIGHT,
289 wxTE_CENTER,
290 wxTE_CENTRE,
291
292 wxCB_SIMPLE,
293 wxCB_DROPDOWN,
294 wxCB_SORT,
295 wxCB_READONLY,
296 wxRA_HORIZONTAL,
297 wxRA_VERTICAL,
298 wxRA_SPECIFY_ROWS,
299 wxRA_SPECIFY_COLS,
300 wxRB_GROUP,
301 wxGA_PROGRESSBAR,
302 wxGA_HORIZONTAL,
303 wxGA_VERTICAL,
304 wxGA_SMOOTH,
305 wxSL_HORIZONTAL,
306 wxSL_VERTICAL,
307 wxSL_AUTOTICKS,
308 wxSL_LABELS,
309 wxSL_LEFT,
310 wxSL_TOP,
311 wxSL_RIGHT,
312 wxSL_BOTTOM,
313 wxSL_BOTH,
314 wxSL_SELRANGE,
315 wxSB_HORIZONTAL,
316 wxSB_VERTICAL,
317 wxST_SIZEGRIP,
318 wxST_NO_AUTORESIZE,
319
320 wxBU_NOAUTODRAW,
321 wxBU_AUTODRAW,
322 wxBU_LEFT,
323 wxBU_TOP,
324 wxBU_RIGHT,
325 wxBU_BOTTOM,
326 wxBU_EXACTFIT,
327
328 wxSP_VERTICAL,
329 wxSP_HORIZONTAL,
330 wxSP_ARROW_KEYS,
331 wxSP_WRAP,
332 wxSP_NOBORDER,
333 wxSP_3D,
334 wxSP_3DSASH,
335 wxSP_3DBORDER,
336 wxSP_FULLSASH,
337 wxSP_BORDER,
338 wxSP_LIVE_UPDATE,
339 wxSP_PERMIT_UNSPLIT,
340 wxFLOOD_SURFACE,
341 wxFLOOD_BORDER,
342 wxODDEVEN_RULE,
343 wxWINDING_RULE,
344 wxTOOL_TOP,
345 wxTOOL_BOTTOM,
346 wxTOOL_LEFT,
347 wxTOOL_RIGHT,
348 wxOK,
349 wxYES_NO,
350 wxCANCEL,
351 wxYES,
352 wxNO,
353 wxNO_DEFAULT,
354 wxYES_DEFAULT,
355 wxICON_EXCLAMATION,
356 wxICON_HAND,
357 wxICON_QUESTION,
358 wxICON_INFORMATION,
359 wxICON_STOP,
360 wxICON_ASTERISK,
361 wxICON_MASK,
362 wxICON_WARNING,
363 wxICON_ERROR,
364
365 wxFORWARD,
366 wxBACKWARD,
367 wxRESET,
368 wxHELP,
369 wxMORE,
370 wxSETUP,
371
372
373 wxCENTRE,
374 wxCENTER,
375 wxSIZE_AUTO_WIDTH,
376 wxSIZE_AUTO_HEIGHT,
377 wxSIZE_AUTO,
378 wxSIZE_USE_EXISTING,
379 wxSIZE_ALLOW_MINUS_ONE,
380 wxPORTRAIT,
381 wxLANDSCAPE,
382 wxPRINT_QUALITY_HIGH,
383 wxPRINT_QUALITY_MEDIUM,
384 wxPRINT_QUALITY_LOW,
385 wxPRINT_QUALITY_DRAFT,
386
387 wxID_ANY,
388 wxID_SEPARATOR,
389
390 wxID_OPEN,
391 wxID_CLOSE,
392 wxID_NEW,
393 wxID_SAVE,
394 wxID_SAVEAS,
395 wxID_REVERT,
396 wxID_EXIT,
397 wxID_UNDO,
398 wxID_REDO,
399 wxID_HELP,
400 wxID_PRINT,
401 wxID_PRINT_SETUP,
402 wxID_PREVIEW,
403 wxID_ABOUT,
404 wxID_HELP_CONTENTS,
405 wxID_HELP_COMMANDS,
406 wxID_HELP_PROCEDURES,
407 wxID_HELP_CONTEXT,
408 wxID_CLOSE_ALL,
409
410 wxID_CUT,
411 wxID_COPY,
412 wxID_PASTE,
413 wxID_CLEAR,
414 wxID_FIND,
415 wxID_DUPLICATE,
416 wxID_SELECTALL,
417
418 wxID_FILE1,
419 wxID_FILE2,
420 wxID_FILE3,
421 wxID_FILE4,
422 wxID_FILE5,
423 wxID_FILE6,
424 wxID_FILE7,
425 wxID_FILE8,
426 wxID_FILE9,
427
428 wxID_OK,
429 wxID_CANCEL,
430 wxID_APPLY,
431 wxID_YES,
432 wxID_NO,
433 wxID_STATIC,
434 wxID_FORWARD,
435 wxID_BACKWARD,
436 wxID_DEFAULT,
437 wxID_MORE,
438 wxID_SETUP,
439 wxID_RESET,
440 wxID_CONTEXT_HELP,
441 wxID_YESTOALL,
442 wxID_NOTOALL,
443 wxID_ABORT,
444 wxID_RETRY,
445 wxID_IGNORE,
446
447 wxOPEN,
448 wxSAVE,
449 wxHIDE_READONLY,
450 wxOVERWRITE_PROMPT,
451 wxFILE_MUST_EXIST,
452 wxMULTIPLE,
453 wxCHANGE_DIR,
454
455 wxACCEL_ALT,
456 wxACCEL_CTRL,
457 wxACCEL_SHIFT,
458 wxACCEL_NORMAL,
459
460 wxPD_AUTO_HIDE,
461 wxPD_APP_MODAL,
462 wxPD_CAN_ABORT,
463 wxPD_ELAPSED_TIME,
464 wxPD_ESTIMATED_TIME,
465 wxPD_REMAINING_TIME,
466
467 wxDD_NEW_DIR_BUTTON,
468 wxDD_DEFAULT_STYLE,
469
470 wxMENU_TEAROFF,
471 wxMB_DOCKABLE,
472 wxNO_FULL_REPAINT_ON_RESIZE,
473
474 wxLEFT,
475 wxRIGHT,
476 wxUP,
477 wxDOWN,
478 wxALL,
479 wxTOP,
480 wxBOTTOM,
481
482 wxNORTH,
483 wxSOUTH,
484 wxEAST,
485 wxWEST,
486
487 wxSTRETCH_NOT,
488 wxSHRINK,
489 wxGROW,
490 wxEXPAND,
491
492 wxNB_FIXEDWIDTH,
493 wxNB_LEFT,
494 wxNB_RIGHT,
495 wxNB_BOTTOM,
496 wxNB_MULTILINE,
497
498 wxLI_HORIZONTAL,
499 wxLI_VERTICAL,
500
501 wxJOYSTICK1,
502 wxJOYSTICK2,
503 wxJOY_BUTTON1,
504 wxJOY_BUTTON2,
505 wxJOY_BUTTON3,
506 wxJOY_BUTTON4,
507 wxJOY_BUTTON_ANY,
508
509 wxWS_EX_VALIDATE_RECURSIVELY,
510 wxWS_EX_BLOCK_EVENTS,
511 wxWS_EX_TRANSIENT,
512
513 // Mapping modes (as per Windows)
514 wxMM_TEXT,
515 wxMM_LOMETRIC,
516 wxMM_HIMETRIC,
517 wxMM_LOENGLISH,
518 wxMM_HIENGLISH,
519 wxMM_TWIPS,
520 wxMM_ISOTROPIC,
521 wxMM_ANISOTROPIC,
522 wxMM_POINTS,
523 wxMM_METRIC,
524
525 wxTIMER_CONTINUOUS,
526 wxTIMER_ONE_SHOT,
527
528 // the symbolic names for the mouse buttons
529 wxMOUSE_BTN_ANY,
530 wxMOUSE_BTN_NONE,
531 wxMOUSE_BTN_LEFT,
532 wxMOUSE_BTN_MIDDLE,
533 wxMOUSE_BTN_RIGHT,
534
535 };
536
537
538 enum wxBorder
539 {
540 wxBORDER_DEFAULT,
541 wxBORDER_NONE,
542 wxBORDER_STATIC,
543 wxBORDER_SIMPLE,
544 wxBORDER_RAISED,
545 wxBORDER_SUNKEN,
546 wxBORDER_DOUBLE,
547 wxBORDER_MASK,
548 };
549
550
551 // // Standard error codes
552 // enum ErrCode
553 // {
554 // ERR_PARAM = (-4000),
555 // ERR_NODATA,
556 // ERR_CANCEL,
557 // ERR_SUCCESS = 0
558 // };
559
560
561 enum {
562 wxDEFAULT ,
563 wxDECORATIVE,
564 wxROMAN,
565 wxSCRIPT,
566 wxSWISS,
567 wxMODERN,
568 wxTELETYPE,
569 wxVARIABLE,
570 wxFIXED,
571 wxNORMAL,
572 wxLIGHT,
573 wxBOLD,
574 wxITALIC,
575 wxSLANT,
576 wxSOLID,
577 wxDOT,
578 wxLONG_DASH,
579 wxSHORT_DASH,
580 wxDOT_DASH,
581 wxUSER_DASH,
582 wxTRANSPARENT,
583 wxSTIPPLE,
584 wxBDIAGONAL_HATCH,
585 wxCROSSDIAG_HATCH,
586 wxFDIAGONAL_HATCH,
587 wxCROSS_HATCH,
588 wxHORIZONTAL_HATCH,
589 wxVERTICAL_HATCH,
590 wxJOIN_BEVEL,
591 wxJOIN_MITER,
592 wxJOIN_ROUND,
593 wxCAP_ROUND,
594 wxCAP_PROJECTING,
595 wxCAP_BUTT
596 };
597
598 typedef enum {
599 wxCLEAR, // 0
600 wxXOR, // src XOR dst
601 wxINVERT, // NOT dst
602 wxOR_REVERSE, // src OR (NOT dst)
603 wxAND_REVERSE,// src AND (NOT dst)
604 wxCOPY, // src
605 wxAND, // src AND dst
606 wxAND_INVERT, // (NOT src) AND dst
607 wxNO_OP, // dst
608 wxNOR, // (NOT src) AND (NOT dst)
609 wxEQUIV, // (NOT src) XOR dst
610 wxSRC_INVERT, // (NOT src)
611 wxOR_INVERT, // (NOT src) OR dst
612 wxNAND, // (NOT src) OR (NOT dst)
613 wxOR, // src OR dst
614 wxSET, // 1
615 // wxSRC_OR, // source _bitmap_ OR destination
616 // wxSRC_AND // source _bitmap_ AND destination
617 } form_ops_t;
618
619 enum wxKeyCode {
620 WXK_BACK = 8,
621 WXK_TAB = 9,
622 WXK_RETURN = 13,
623 WXK_ESCAPE = 27,
624 WXK_SPACE = 32,
625 WXK_DELETE = 127,
626
627 WXK_START = 300,
628 WXK_LBUTTON,
629 WXK_RBUTTON,
630 WXK_CANCEL,
631 WXK_MBUTTON,
632 WXK_CLEAR,
633 WXK_SHIFT,
634 WXK_ALT,
635 WXK_CONTROL,
636 WXK_MENU,
637 WXK_PAUSE,
638 WXK_CAPITAL,
639 WXK_PRIOR, /* Page up */
640 WXK_NEXT, /* Page down */
641 WXK_END,
642 WXK_HOME,
643 WXK_LEFT,
644 WXK_UP,
645 WXK_RIGHT,
646 WXK_DOWN,
647 WXK_SELECT,
648 WXK_PRINT,
649 WXK_EXECUTE,
650 WXK_SNAPSHOT,
651 WXK_INSERT,
652 WXK_HELP,
653 WXK_NUMPAD0,
654 WXK_NUMPAD1,
655 WXK_NUMPAD2,
656 WXK_NUMPAD3,
657 WXK_NUMPAD4,
658 WXK_NUMPAD5,
659 WXK_NUMPAD6,
660 WXK_NUMPAD7,
661 WXK_NUMPAD8,
662 WXK_NUMPAD9,
663 WXK_MULTIPLY,
664 WXK_ADD,
665 WXK_SEPARATOR,
666 WXK_SUBTRACT,
667 WXK_DECIMAL,
668 WXK_DIVIDE,
669 WXK_F1,
670 WXK_F2,
671 WXK_F3,
672 WXK_F4,
673 WXK_F5,
674 WXK_F6,
675 WXK_F7,
676 WXK_F8,
677 WXK_F9,
678 WXK_F10,
679 WXK_F11,
680 WXK_F12,
681 WXK_F13,
682 WXK_F14,
683 WXK_F15,
684 WXK_F16,
685 WXK_F17,
686 WXK_F18,
687 WXK_F19,
688 WXK_F20,
689 WXK_F21,
690 WXK_F22,
691 WXK_F23,
692 WXK_F24,
693 WXK_NUMLOCK,
694 WXK_SCROLL,
695 WXK_PAGEUP,
696 WXK_PAGEDOWN,
697
698 WXK_NUMPAD_SPACE,
699 WXK_NUMPAD_TAB,
700 WXK_NUMPAD_ENTER,
701 WXK_NUMPAD_F1,
702 WXK_NUMPAD_F2,
703 WXK_NUMPAD_F3,
704 WXK_NUMPAD_F4,
705 WXK_NUMPAD_HOME,
706 WXK_NUMPAD_LEFT,
707 WXK_NUMPAD_UP,
708 WXK_NUMPAD_RIGHT,
709 WXK_NUMPAD_DOWN,
710 WXK_NUMPAD_PRIOR,
711 WXK_NUMPAD_PAGEUP,
712 WXK_NUMPAD_NEXT,
713 WXK_NUMPAD_PAGEDOWN,
714 WXK_NUMPAD_END,
715 WXK_NUMPAD_BEGIN,
716 WXK_NUMPAD_INSERT,
717 WXK_NUMPAD_DELETE,
718 WXK_NUMPAD_EQUAL,
719 WXK_NUMPAD_MULTIPLY,
720 WXK_NUMPAD_ADD,
721 WXK_NUMPAD_SEPARATOR,
722 WXK_NUMPAD_SUBTRACT,
723 WXK_NUMPAD_DECIMAL,
724 WXK_NUMPAD_DIVIDE
725
726 };
727
728
729 // Bitmap flags
730 enum wxBitmapType
731 {
732 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
733 wxBITMAP_TYPE_BMP,
734 wxBITMAP_TYPE_BMP_RESOURCE,
735 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
736 wxBITMAP_TYPE_ICO,
737 wxBITMAP_TYPE_ICO_RESOURCE,
738 wxBITMAP_TYPE_CUR,
739 wxBITMAP_TYPE_CUR_RESOURCE,
740 wxBITMAP_TYPE_XBM,
741 wxBITMAP_TYPE_XBM_DATA,
742 wxBITMAP_TYPE_XPM,
743 wxBITMAP_TYPE_XPM_DATA,
744 wxBITMAP_TYPE_TIF,
745 wxBITMAP_TYPE_TIF_RESOURCE,
746 wxBITMAP_TYPE_GIF,
747 wxBITMAP_TYPE_GIF_RESOURCE,
748 wxBITMAP_TYPE_PNG,
749 wxBITMAP_TYPE_PNG_RESOURCE,
750 wxBITMAP_TYPE_JPEG,
751 wxBITMAP_TYPE_JPEG_RESOURCE,
752 wxBITMAP_TYPE_PNM,
753 wxBITMAP_TYPE_PNM_RESOURCE,
754 wxBITMAP_TYPE_PCX,
755 wxBITMAP_TYPE_PCX_RESOURCE,
756 wxBITMAP_TYPE_PICT,
757 wxBITMAP_TYPE_PICT_RESOURCE,
758 wxBITMAP_TYPE_ICON,
759 wxBITMAP_TYPE_ICON_RESOURCE,
760 wxBITMAP_TYPE_ANI,
761 wxBITMAP_TYPE_IFF,
762 wxBITMAP_TYPE_MACCURSOR,
763 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
764 wxBITMAP_TYPE_ANY = 50
765 };
766
767
768
769
770 // Standard cursors
771 enum wxStockCursor
772 {
773 wxCURSOR_NONE,
774 wxCURSOR_ARROW,
775 wxCURSOR_RIGHT_ARROW,
776 wxCURSOR_BULLSEYE,
777 wxCURSOR_CHAR,
778 wxCURSOR_CROSS,
779 wxCURSOR_HAND,
780 wxCURSOR_IBEAM,
781 wxCURSOR_LEFT_BUTTON,
782 wxCURSOR_MAGNIFIER,
783 wxCURSOR_MIDDLE_BUTTON,
784 wxCURSOR_NO_ENTRY,
785 wxCURSOR_PAINT_BRUSH,
786 wxCURSOR_PENCIL,
787 wxCURSOR_POINT_LEFT,
788 wxCURSOR_POINT_RIGHT,
789 wxCURSOR_QUESTION_ARROW,
790 wxCURSOR_RIGHT_BUTTON,
791 wxCURSOR_SIZENESW,
792 wxCURSOR_SIZENS,
793 wxCURSOR_SIZENWSE,
794 wxCURSOR_SIZEWE,
795 wxCURSOR_SIZING,
796 wxCURSOR_SPRAYCAN,
797 wxCURSOR_WAIT,
798 wxCURSOR_WATCH,
799 wxCURSOR_BLANK,
800 wxCURSOR_DEFAULT,
801 wxCURSOR_ARROWWAIT,
802 wxCURSOR_MAX
803 };
804
805
806
807 typedef enum {
808 wxPAPER_NONE, // Use specific dimensions
809 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
810 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
811 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
812 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
813 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
814 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
815 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
816 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
817 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
818 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
819 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
820 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
821 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
822 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
823 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
824 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
825 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
826 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
827 wxPAPER_10X14, // 10-by-14-inch sheet
828 wxPAPER_11X17, // 11-by-17-inch sheet
829 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
830 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
831 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
832 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
833 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
834 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
835 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
836 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
837 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
838 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
839 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
840 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
841 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
842 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
843 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
844 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
845 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
846 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
847 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
848 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
849 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
850
851 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
852 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
853 wxPAPER_9X11, // 9 x 11 in
854 wxPAPER_10X11, // 10 x 11 in
855 wxPAPER_15X11, // 15 x 11 in
856 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
857 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
858 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
859 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
860 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
861 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
862 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
863 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
864 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
865 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
866 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
867 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
868 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
869 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
870 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
871 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
872 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
873 wxPAPER_A2, // A2 420 x 594 mm
874 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
875 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
876
877 } wxPaperSize ;
878
879 typedef enum {
880 wxDUPLEX_SIMPLEX, // Non-duplex
881 wxDUPLEX_HORIZONTAL,
882 wxDUPLEX_VERTICAL
883 } wxDuplexMode;
884
885
886
887 // menu and toolbar item kinds
888 enum wxItemKind
889 {
890 wxITEM_SEPARATOR = -1,
891 wxITEM_NORMAL,
892 wxITEM_CHECK,
893 wxITEM_RADIO,
894 wxITEM_MAX
895 };
896
897 enum wxHitTest
898 {
899 wxHT_NOWHERE,
900
901 // scrollbar
902 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
903 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
904 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
905 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
906 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
907 wxHT_SCROLLBAR_THUMB, // on the thumb
908 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
909 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
910 wxHT_SCROLLBAR_LAST,
911
912 // window
913 wxHT_WINDOW_OUTSIDE, // not in this window at all
914 wxHT_WINDOW_INSIDE, // in the client area
915 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
916 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
917 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
918
919 wxHT_MAX
920 };
921
922
923
924 #define FALSE 0
925 #define false 0
926 #define TRUE 1
927 #define true 1
928
929
930 //---------------------------------------------------------------------------
931 //---------------------------------------------------------------------------
932
933 /*
934 * Event types
935 *
936 */
937 enum wxEventType {
938 wxEVT_NULL = 0,
939 wxEVT_FIRST = 10000,
940
941 // New names
942 wxEVT_COMMAND_BUTTON_CLICKED,
943 wxEVT_COMMAND_CHECKBOX_CLICKED,
944 wxEVT_COMMAND_CHOICE_SELECTED,
945 wxEVT_COMMAND_LISTBOX_SELECTED,
946 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
947 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
948 wxEVT_COMMAND_SPINCTRL_UPDATED,
949 wxEVT_COMMAND_TEXT_UPDATED,
950 wxEVT_COMMAND_TEXT_ENTER,
951 wxEVT_COMMAND_TEXT_URL,
952 wxEVT_COMMAND_TEXT_MAXLEN,
953 wxEVT_COMMAND_MENU_SELECTED,
954 wxEVT_COMMAND_SLIDER_UPDATED,
955 wxEVT_COMMAND_RADIOBOX_SELECTED,
956 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
957 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
958 wxEVT_COMMAND_SCROLLBAR_UPDATED,
959 wxEVT_COMMAND_VLBOX_SELECTED,
960 wxEVT_COMMAND_COMBOBOX_SELECTED,
961 wxEVT_COMMAND_TOOL_CLICKED,
962 wxEVT_COMMAND_TOOL_RCLICKED,
963 wxEVT_COMMAND_TOOL_ENTER,
964 wxEVT_SET_FOCUS,
965 wxEVT_KILL_FOCUS,
966 wxEVT_CHILD_FOCUS,
967 wxEVT_MOUSEWHEEL,
968
969 /* Mouse event types */
970 wxEVT_LEFT_DOWN,
971 wxEVT_LEFT_UP,
972 wxEVT_MIDDLE_DOWN,
973 wxEVT_MIDDLE_UP,
974 wxEVT_RIGHT_DOWN,
975 wxEVT_RIGHT_UP,
976 wxEVT_MOTION,
977 wxEVT_ENTER_WINDOW,
978 wxEVT_LEAVE_WINDOW,
979 wxEVT_LEFT_DCLICK,
980 wxEVT_MIDDLE_DCLICK,
981 wxEVT_RIGHT_DCLICK,
982
983 wxEVT_MOUSE_CAPTURE_CHANGED,
984
985 // Non-client mouse events
986 wxEVT_NC_LEFT_DOWN,
987 wxEVT_NC_LEFT_UP,
988 wxEVT_NC_MIDDLE_DOWN,
989 wxEVT_NC_MIDDLE_UP,
990 wxEVT_NC_RIGHT_DOWN,
991 wxEVT_NC_RIGHT_UP,
992 wxEVT_NC_MOTION,
993 wxEVT_NC_ENTER_WINDOW,
994 wxEVT_NC_LEAVE_WINDOW,
995 wxEVT_NC_LEFT_DCLICK,
996 wxEVT_NC_MIDDLE_DCLICK,
997 wxEVT_NC_RIGHT_DCLICK,
998
999 wxEVT_SET_CURSOR,
1000
1001 /* Character input event type */
1002 wxEVT_CHAR,
1003 wxEVT_KEY_DOWN,
1004 wxEVT_KEY_UP,
1005 wxEVT_CHAR_HOOK,
1006
1007 /*
1008 * Scrollbar event identifiers
1009 */
1010 wxEVT_SCROLL_TOP,
1011 wxEVT_SCROLL_BOTTOM,
1012 wxEVT_SCROLL_LINEUP,
1013 wxEVT_SCROLL_LINEDOWN,
1014 wxEVT_SCROLL_PAGEUP,
1015 wxEVT_SCROLL_PAGEDOWN,
1016 wxEVT_SCROLL_THUMBTRACK,
1017 wxEVT_SCROLL_THUMBRELEASE,
1018 wxEVT_SCROLL_ENDSCROLL,
1019
1020 /*
1021 * Scrolled Window
1022 */
1023 wxEVT_SCROLLWIN_TOP,
1024 wxEVT_SCROLLWIN_BOTTOM,
1025 wxEVT_SCROLLWIN_LINEUP,
1026 wxEVT_SCROLLWIN_LINEDOWN,
1027 wxEVT_SCROLLWIN_PAGEUP,
1028 wxEVT_SCROLLWIN_PAGEDOWN,
1029 wxEVT_SCROLLWIN_THUMBTRACK,
1030 wxEVT_SCROLLWIN_THUMBRELEASE,
1031
1032 wxEVT_SIZE = wxEVT_FIRST + 200,
1033 wxEVT_MOVE,
1034 wxEVT_CLOSE_WINDOW,
1035 wxEVT_END_SESSION,
1036 wxEVT_QUERY_END_SESSION,
1037 wxEVT_ACTIVATE_APP,
1038 wxEVT_POWER,
1039 wxEVT_ACTIVATE,
1040 wxEVT_CREATE,
1041 wxEVT_DESTROY,
1042 wxEVT_SHOW,
1043 wxEVT_ICONIZE,
1044 wxEVT_MAXIMIZE,
1045 wxEVT_PAINT,
1046 wxEVT_ERASE_BACKGROUND,
1047 wxEVT_NC_PAINT,
1048 wxEVT_PAINT_ICON,
1049 wxEVT_MENU_OPEN,
1050 wxEVT_MENU_CLOSE,
1051 wxEVT_MENU_HIGHLIGHT,
1052 wxEVT_CONTEXT_MENU,
1053 wxEVT_SYS_COLOUR_CHANGED,
1054 wxEVT_DISPLAY_CHANGED,
1055 wxEVT_SETTING_CHANGED,
1056 wxEVT_QUERY_NEW_PALETTE,
1057 wxEVT_PALETTE_CHANGED,
1058 wxEVT_JOY_BUTTON_DOWN,
1059 wxEVT_JOY_BUTTON_UP,
1060 wxEVT_JOY_MOVE,
1061 wxEVT_JOY_ZMOVE,
1062 wxEVT_DROP_FILES,
1063 wxEVT_DRAW_ITEM,
1064 wxEVT_MEASURE_ITEM,
1065 wxEVT_COMPARE_ITEM,
1066 wxEVT_INIT_DIALOG,
1067 wxEVT_IDLE,
1068 wxEVT_UPDATE_UI,
1069
1070
1071 /* Generic command events */
1072 // Note: a click is a higher-level event
1073 // than button down/up
1074 wxEVT_COMMAND_LEFT_CLICK,
1075 wxEVT_COMMAND_LEFT_DCLICK,
1076 wxEVT_COMMAND_RIGHT_CLICK,
1077 wxEVT_COMMAND_RIGHT_DCLICK,
1078 wxEVT_COMMAND_SET_FOCUS,
1079 wxEVT_COMMAND_KILL_FOCUS,
1080 wxEVT_COMMAND_ENTER,
1081
1082 wxEVT_NAVIGATION_KEY,
1083
1084 wxEVT_TIMER,
1085
1086 };
1087
1088
1089
1090
1091 //----------------------------------------------------------------------