]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_defs.i
Various changes needed to get up to date with current CVS
[wxWidgets.git] / wxPython / src / _defs.i
CommitLineData
7bf85405
RD
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
af309447
RD
18class wxAcceleratorEntry;
19class wxAcceleratorTable;
20class wxActivateEvent;
21class wxBitmapButton;
22class wxBitmap;
23class wxBrush;
24class wxButton;
25class wxCalculateLayoutEvent;
a1df7a95 26class wxCaret;
af309447
RD
27class wxCheckBox;
28class wxCheckListBox;
29class wxChoice;
30class wxClientDC;
7bf85405 31class wxCloseEvent;
af309447
RD
32class wxColourData;
33class wxColourDialog;
34class wxColour;
35class wxComboBox;
7bf85405 36class wxCommandEvent;
af309447
RD
37class wxConfig;
38class wxControl;
39class wxCursor;
40class wxDC;
41class wxDialog;
42class wxDirDialog;
43class wxDropFilesEvent;
7bf85405 44class wxEraseEvent;
af309447
RD
45class wxEvent;
46class wxEvtHandler;
47class wxFileDialog;
7bf85405 48class wxFocusEvent;
af309447
RD
49class wxFontData;
50class wxFontDialog;
51class wxFont;
52class wxFrame;
53class wxGauge;
54class wxGridCell;
55class wxGridEvent;
56class wxGrid;
7bf85405 57class wxIconizeEvent;
af309447 58class wxIcon;
7bf85405 59class wxIdleEvent;
af309447
RD
60class wxImageList;
61class wxIndividualLayoutConstraint;
62class wxInitDialogEvent;
63class wxJoystickEvent;
64class wxKeyEvent;
65class wxLayoutAlgorithm;
66class wxLayoutConstraints;
67class wxListBox;
68class wxListCtrl;
69class wxListEvent;
70class wxListItem;
71class wxMDIChildFrame;
72class wxMDIClientWindow;
73class wxMDIParentFrame;
7bf85405 74class wxMask;
af309447 75class wxMaximizeEvent;
7bf85405 76class wxMemoryDC;
af309447
RD
77class wxMenuBar;
78class wxMenuEvent;
79class wxMenuItem;
80class wxMenu;
81class wxMessageDialog;
82class wxMetaFileDC;
83class wxMiniFrame;
84class wxMouseEvent;
85class wxMoveEvent;
86class wxNotebookEvent;
87class wxNotebook;
88class wxPageSetupData;
89class wxPageSetupDialog;
7bf85405 90class wxPaintDC;
af309447
RD
91class wxPaintEvent;
92class wxPalette;
93class wxPanel;
94class wxPen;
95class wxPoint;
7bf85405 96class wxPostScriptDC;
af309447
RD
97class wxPrintData;
98class wxPrintDialog;
7bf85405 99class wxPrinterDC;
af309447 100class wxQueryLayoutInfoEvent;
7bf85405
RD
101class wxRadioBox;
102class wxRadioButton;
af309447
RD
103class wxRealPoint;
104class wxRect;
105class wxRegionIterator;
106class wxRegion;
107class wxSashEvent;
108class wxSashLayoutWindow;
109class wxSashWindow;
110class wxScreenDC;
111class wxScrollBar;
112class wxScrollEvent;
d426c97e 113class wxScrollWinEvent;
af309447
RD
114class wxScrolledWindow;
115class wxShowEvent;
116class wxSingleChoiceDialog;
117class wxSizeEvent;
118class wxSize;
7bf85405 119class wxSlider;
af309447
RD
120class wxSpinButton;
121class wxSpinEvent;
122class wxSplitterWindow;
123class wxStaticBitmap;
124class wxStaticBox;
125class wxStaticText;
126class wxStatusBar;
127class wxSysColourChangedEvent;
128class wxTaskBarIcon;
129class wxTextCtrl;
130class wxTextEntryDialog;
131class wxTimer;
132class wxToolBarTool;
133class wxToolBar;
134class wxToolTip;
135class wxTreeCtrl;
136class wxTreeEvent;
137class wxTreeItemData;
138class wxTreeItemId;
139class wxUpdateUIEvent;
140class wxWindowDC;
141class wxWindow;
2f90df85
RD
142class wxSizer;
143class wxBoxSizer;
144class wxStaticBoxSizer;
7bf85405 145
af309447
RD
146class wxPyApp;
147class wxPyMenu;
7bf85405 148class wxPyTimer;
af309447 149
7bf85405
RD
150
151//---------------------------------------------------------------------------
152
153// some definitions for SWIG only
154typedef unsigned char byte;
155typedef short int WXTYPE;
156typedef int wxWindowID;
157typedef unsigned int uint;
158typedef signed int EBool;
c127177f 159typedef unsigned int size_t
c368d904 160typedef unsigned int time_t
bb0054cd 161typedef int wxPrintQuality;
b1462dfa 162typedef int wxCoord;
f6bcfd97 163typedef char wxChar;
b1462dfa 164
7bf85405
RD
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
171enum {
172 wxMAJOR_VERSION,
173 wxMINOR_VERSION,
174 wxRELEASE_NUMBER,
175
08127323 176 wxNOT_FOUND,
7bf85405
RD
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,
9cbf6f6e 191
7bf85405 192 wxTAB_TRAVERSAL,
1afc06c2 193 wxWANTS_CHARS,
0122b7e3 194 wxPOPUP_WINDOW,
7bf85405
RD
195 wxHORIZONTAL,
196 wxVERTICAL,
197 wxBOTH,
198 wxCENTER_FRAME,
1afc06c2
RD
199 wxCENTRE_ON_SCREEN,
200 wxCENTER_ON_SCREEN,
201
7bf85405
RD
202 wxSTAY_ON_TOP,
203 wxICONIZE,
204 wxMINIMIZE,
205 wxMAXIMIZE,
9cbf6f6e 206 wxCLOSE_BOX,
7bf85405
RD
207 wxTHICK_FRAME,
208 wxSYSTEM_MENU,
209 wxMINIMIZE_BOX,
210 wxMAXIMIZE_BOX,
211 wxTINY_CAPTION_HORIZ,
212 wxTINY_CAPTION_VERT,
213 wxRESIZE_BOX,
214 wxRESIZE_BORDER,
215 wxDIALOG_MODAL,
216 wxDIALOG_MODELESS,
25832b3f 217 wxDIALOG_NO_PARENT,
7bf85405
RD
218 wxDEFAULT_FRAME_STYLE,
219 wxDEFAULT_DIALOG_STYLE,
b8b8dda7
RD
220
221 wxFRAME_TOOL_WINDOW,
bb0054cd 222 wxFRAME_FLOAT_ON_PARENT,
4c9993c3 223 wxFRAME_NO_WINDOW_MENU,
1b62f00d 224 wxFRAME_NO_TASKBAR,
1fded56b 225 wxFRAME_SHAPED,
4f3449b4 226
1afc06c2
RD
227 wxED_CLIENT_MARGIN,
228 wxED_BUTTONS_BOTTOM,
229 wxED_BUTTONS_RIGHT,
230 wxED_STATIC_LINE,
231 wxEXT_DIALOG_STYLE,
bb0054cd 232
08127323 233 wxCLIP_CHILDREN,
edf2f43e 234 wxCLIP_SIBLINGS,
b8b8dda7 235
7bf85405
RD
236 wxRETAINED,
237 wxBACKINGSTORE,
b96c7a38 238
7bf85405
RD
239 wxCOLOURED,
240 wxFIXED_LENGTH,
241 wxALIGN_LEFT,
be2577e4
RD
242 wxALIGN_CENTER_HORIZONTAL,
243 wxALIGN_CENTRE_HORIZONTAL,
7bf85405 244 wxALIGN_RIGHT,
2f90df85 245 wxALIGN_BOTTOM,
be2577e4
RD
246 wxALIGN_CENTER_VERTICAL,
247 wxALIGN_CENTRE_VERTICAL,
2f90df85 248 wxALIGN_TOP,
be2577e4
RD
249 wxALIGN_CENTER,
250 wxALIGN_CENTRE,
251 wxSHAPED,
1b62f00d
RD
252 wxADJUST_MINSIZE,
253
7bf85405
RD
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,
b1e930a5 264
7bf85405
RD
265 wxCB_SIMPLE,
266 wxCB_DROPDOWN,
267 wxCB_SORT,
268 wxCB_READONLY,
269 wxRA_HORIZONTAL,
270 wxRA_VERTICAL,
ed175610
RD
271 wxRA_SPECIFY_ROWS,
272 wxRA_SPECIFY_COLS,
7bf85405 273 wxRB_GROUP,
1e4a197e 274 wxRB_SINGLE,
7bf85405
RD
275 wxGA_PROGRESSBAR,
276 wxGA_HORIZONTAL,
277 wxGA_VERTICAL,
bb0054cd 278 wxGA_SMOOTH,
7bf85405
RD
279 wxSL_HORIZONTAL,
280 wxSL_VERTICAL,
281 wxSL_AUTOTICKS,
282 wxSL_LABELS,
283 wxSL_LEFT,
284 wxSL_TOP,
285 wxSL_RIGHT,
286 wxSL_BOTTOM,
287 wxSL_BOTH,
288 wxSL_SELRANGE,
289 wxSB_HORIZONTAL,
290 wxSB_VERTICAL,
cf694132 291 wxST_SIZEGRIP,
2abc0a0f 292 wxST_NO_AUTORESIZE,
203c2f9a 293
7bf85405 294 wxBU_NOAUTODRAW,
203c2f9a
RD
295 wxBU_AUTODRAW,
296 wxBU_LEFT,
297 wxBU_TOP,
298 wxBU_RIGHT,
299 wxBU_BOTTOM,
300 wxBU_EXACTFIT,
301
7bf85405
RD
302 wxFLOOD_SURFACE,
303 wxFLOOD_BORDER,
304 wxODDEVEN_RULE,
305 wxWINDING_RULE,
306 wxTOOL_TOP,
307 wxTOOL_BOTTOM,
308 wxTOOL_LEFT,
309 wxTOOL_RIGHT,
310 wxOK,
311 wxYES_NO,
312 wxCANCEL,
313 wxYES,
314 wxNO,
1afc06c2
RD
315 wxNO_DEFAULT,
316 wxYES_DEFAULT,
7bf85405
RD
317 wxICON_EXCLAMATION,
318 wxICON_HAND,
319 wxICON_QUESTION,
320 wxICON_INFORMATION,
321 wxICON_STOP,
322 wxICON_ASTERISK,
323 wxICON_MASK,
1afc06c2
RD
324 wxICON_WARNING,
325 wxICON_ERROR,
326
327 wxFORWARD,
328 wxBACKWARD,
329 wxRESET,
330 wxHELP,
331 wxMORE,
332 wxSETUP,
333
f3d9dc1d 334
7bf85405
RD
335 wxCENTRE,
336 wxCENTER,
337 wxSIZE_AUTO_WIDTH,
338 wxSIZE_AUTO_HEIGHT,
339 wxSIZE_AUTO,
340 wxSIZE_USE_EXISTING,
341 wxSIZE_ALLOW_MINUS_ONE,
7bf85405
RD
342 wxPORTRAIT,
343 wxLANDSCAPE,
bb0054cd
RD
344 wxPRINT_QUALITY_HIGH,
345 wxPRINT_QUALITY_MEDIUM,
346 wxPRINT_QUALITY_LOW,
347 wxPRINT_QUALITY_DRAFT,
26e335b8 348
3eb221f6
RD
349 wxID_ANY,
350 wxID_SEPARATOR,
351
7bf85405
RD
352 wxID_OPEN,
353 wxID_CLOSE,
354 wxID_NEW,
355 wxID_SAVE,
356 wxID_SAVEAS,
357 wxID_REVERT,
358 wxID_EXIT,
359 wxID_UNDO,
360 wxID_REDO,
361 wxID_HELP,
362 wxID_PRINT,
363 wxID_PRINT_SETUP,
364 wxID_PREVIEW,
365 wxID_ABOUT,
366 wxID_HELP_CONTENTS,
367 wxID_HELP_COMMANDS,
368 wxID_HELP_PROCEDURES,
369 wxID_HELP_CONTEXT,
b5a5d647 370 wxID_CLOSE_ALL,
1a10a058 371 wxID_PREFERENCES,
26e335b8 372
7bf85405
RD
373 wxID_CUT,
374 wxID_COPY,
375 wxID_PASTE,
376 wxID_CLEAR,
377 wxID_FIND,
d56cebe7
RD
378 wxID_DUPLICATE,
379 wxID_SELECTALL,
26e335b8 380
3ef86e32
RD
381 wxID_DELETE,
382 wxID_REPLACE,
383 wxID_REPLACE_ALL,
384 wxID_PROPERTIES,
385
386 wxID_VIEW_DETAILS,
387 wxID_VIEW_LARGEICONS,
388 wxID_VIEW_SMALLICONS,
389 wxID_VIEW_LIST,
390 wxID_VIEW_SORTDATE,
391 wxID_VIEW_SORTNAME,
392 wxID_VIEW_SORTSIZE,
393 wxID_VIEW_SORTTYPE,
394
7bf85405
RD
395 wxID_FILE1,
396 wxID_FILE2,
397 wxID_FILE3,
398 wxID_FILE4,
399 wxID_FILE5,
400 wxID_FILE6,
401 wxID_FILE7,
402 wxID_FILE8,
403 wxID_FILE9,
26e335b8 404
7bf85405
RD
405 wxID_OK,
406 wxID_CANCEL,
407 wxID_APPLY,
408 wxID_YES,
409 wxID_NO,
cf694132 410 wxID_STATIC,
f3d9dc1d
RD
411 wxID_FORWARD,
412 wxID_BACKWARD,
26e335b8 413 wxID_DEFAULT,
f3d9dc1d 414 wxID_MORE,
26e335b8
RD
415 wxID_SETUP,
416 wxID_RESET,
417 wxID_CONTEXT_HELP,
418 wxID_YESTOALL,
419 wxID_NOTOALL,
420 wxID_ABORT,
421 wxID_RETRY,
422 wxID_IGNORE,
f3d9dc1d 423
7bf85405
RD
424 wxOPEN,
425 wxSAVE,
426 wxHIDE_READONLY,
427 wxOVERWRITE_PROMPT,
2abc0a0f 428 wxFILE_MUST_EXIST,
f6bcfd97 429 wxMULTIPLE,
1b62f00d 430 wxCHANGE_DIR,
7bf85405
RD
431
432 wxACCEL_ALT,
433 wxACCEL_CTRL,
434 wxACCEL_SHIFT,
f6bcfd97 435 wxACCEL_NORMAL,
bb0054cd
RD
436
437 wxPD_AUTO_HIDE,
438 wxPD_APP_MODAL,
439 wxPD_CAN_ABORT,
a08cbc01
RD
440 wxPD_ELAPSED_TIME,
441 wxPD_ESTIMATED_TIME,
442 wxPD_REMAINING_TIME,
bb0054cd 443
7cdaed0b 444 wxDD_NEW_DIR_BUTTON,
daa3eac9 445 wxDD_DEFAULT_STYLE,
7cdaed0b 446
8bf5d46e 447 wxMENU_TEAROFF,
1afc06c2 448 wxMB_DOCKABLE,
8bf5d46e 449 wxNO_FULL_REPAINT_ON_RESIZE,
1a10a058 450 wxFULL_REPAINT_ON_RESIZE,
8bf5d46e 451
1afc06c2
RD
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
1afc06c2
RD
470 wxLI_HORIZONTAL,
471 wxLI_VERTICAL,
472
185d7c3e
RD
473 wxJOYSTICK1,
474 wxJOYSTICK2,
475 wxJOY_BUTTON1,
476 wxJOY_BUTTON2,
477 wxJOY_BUTTON3,
478 wxJOY_BUTTON4,
479 wxJOY_BUTTON_ANY,
480
d1679124 481 wxWS_EX_VALIDATE_RECURSIVELY,
0122b7e3 482 wxWS_EX_BLOCK_EVENTS,
78e8819c 483 wxWS_EX_TRANSIENT,
ecc08ead 484
3ef86e32
RD
485 wxWS_EX_THEMED_BACKGROUND,
486 wxWS_EX_PROCESS_IDLE,
487 wxWS_EX_PROCESS_UI_UPDATES,
488
489
ecc08ead
RD
490 // Mapping modes (as per Windows)
491 wxMM_TEXT,
492 wxMM_LOMETRIC,
493 wxMM_HIMETRIC,
494 wxMM_LOENGLISH,
495 wxMM_HIENGLISH,
496 wxMM_TWIPS,
497 wxMM_ISOTROPIC,
498 wxMM_ANISOTROPIC,
499 wxMM_POINTS,
500 wxMM_METRIC,
501
fe953afb
RD
502 wxTIMER_CONTINUOUS,
503 wxTIMER_ONE_SHOT,
3eb221f6
RD
504
505 // the symbolic names for the mouse buttons
506 wxMOUSE_BTN_ANY,
507 wxMOUSE_BTN_NONE,
508 wxMOUSE_BTN_LEFT,
509 wxMOUSE_BTN_MIDDLE,
510 wxMOUSE_BTN_RIGHT,
511
1e4a197e
RD
512 // It looks like wxTabCtrl may rise from the dead. Uncomment these if
513 // it gets an implementation for all platforms...
514// wxTC_RIGHTJUSTIFY,
515// wxTC_FIXEDWIDTH,
516// wxTC_TOP,
517// wxTC_LEFT,
518// wxTC_RIGHT,
519// wxTC_BOTTOM,
520// wxTC_MULTILINE,
521// wxTC_OWNERDRAW,
522
7bf85405
RD
523};
524
525
ebf4302c
RD
526enum wxBorder
527{
528 wxBORDER_DEFAULT,
529 wxBORDER_NONE,
530 wxBORDER_STATIC,
531 wxBORDER_SIMPLE,
532 wxBORDER_RAISED,
533 wxBORDER_SUNKEN,
534 wxBORDER_DOUBLE,
535 wxBORDER_MASK,
536};
537
538
cf694132
RD
539// // Standard error codes
540// enum ErrCode
541// {
542// ERR_PARAM = (-4000),
543// ERR_NODATA,
544// ERR_CANCEL,
545// ERR_SUCCESS = 0
546// };
7bf85405
RD
547
548
549enum {
550 wxDEFAULT ,
551 wxDECORATIVE,
552 wxROMAN,
553 wxSCRIPT,
554 wxSWISS,
555 wxMODERN,
556 wxTELETYPE,
557 wxVARIABLE,
558 wxFIXED,
559 wxNORMAL,
560 wxLIGHT,
561 wxBOLD,
562 wxITALIC,
563 wxSLANT,
564 wxSOLID,
565 wxDOT,
566 wxLONG_DASH,
567 wxSHORT_DASH,
568 wxDOT_DASH,
569 wxUSER_DASH,
570 wxTRANSPARENT,
571 wxSTIPPLE,
572 wxBDIAGONAL_HATCH,
573 wxCROSSDIAG_HATCH,
574 wxFDIAGONAL_HATCH,
575 wxCROSS_HATCH,
576 wxHORIZONTAL_HATCH,
577 wxVERTICAL_HATCH,
578 wxJOIN_BEVEL,
579 wxJOIN_MITER,
580 wxJOIN_ROUND,
581 wxCAP_ROUND,
582 wxCAP_PROJECTING,
583 wxCAP_BUTT
584};
585
586typedef enum {
587 wxCLEAR, // 0
588 wxXOR, // src XOR dst
589 wxINVERT, // NOT dst
590 wxOR_REVERSE, // src OR (NOT dst)
591 wxAND_REVERSE,// src AND (NOT dst)
592 wxCOPY, // src
593 wxAND, // src AND dst
594 wxAND_INVERT, // (NOT src) AND dst
595 wxNO_OP, // dst
596 wxNOR, // (NOT src) AND (NOT dst)
597 wxEQUIV, // (NOT src) XOR dst
598 wxSRC_INVERT, // (NOT src)
599 wxOR_INVERT, // (NOT src) OR dst
600 wxNAND, // (NOT src) OR (NOT dst)
601 wxOR, // src OR dst
602 wxSET, // 1
26b9cf27
RD
603// wxSRC_OR, // source _bitmap_ OR destination
604// wxSRC_AND // source _bitmap_ AND destination
7bf85405
RD
605} form_ops_t;
606
65fe3842
RD
607enum wxKeyCode {
608 WXK_BACK = 8,
609 WXK_TAB = 9,
610 WXK_RETURN = 13,
611 WXK_ESCAPE = 27,
612 WXK_SPACE = 32,
613 WXK_DELETE = 127,
614
615 WXK_START = 300,
616 WXK_LBUTTON,
617 WXK_RBUTTON,
618 WXK_CANCEL,
619 WXK_MBUTTON,
620 WXK_CLEAR,
621 WXK_SHIFT,
622 WXK_ALT,
623 WXK_CONTROL,
624 WXK_MENU,
625 WXK_PAUSE,
626 WXK_CAPITAL,
627 WXK_PRIOR, /* Page up */
628 WXK_NEXT, /* Page down */
629 WXK_END,
630 WXK_HOME,
631 WXK_LEFT,
632 WXK_UP,
633 WXK_RIGHT,
634 WXK_DOWN,
635 WXK_SELECT,
636 WXK_PRINT,
637 WXK_EXECUTE,
638 WXK_SNAPSHOT,
639 WXK_INSERT,
640 WXK_HELP,
641 WXK_NUMPAD0,
642 WXK_NUMPAD1,
643 WXK_NUMPAD2,
644 WXK_NUMPAD3,
645 WXK_NUMPAD4,
646 WXK_NUMPAD5,
647 WXK_NUMPAD6,
648 WXK_NUMPAD7,
649 WXK_NUMPAD8,
650 WXK_NUMPAD9,
651 WXK_MULTIPLY,
652 WXK_ADD,
653 WXK_SEPARATOR,
654 WXK_SUBTRACT,
655 WXK_DECIMAL,
656 WXK_DIVIDE,
657 WXK_F1,
658 WXK_F2,
659 WXK_F3,
660 WXK_F4,
661 WXK_F5,
662 WXK_F6,
663 WXK_F7,
664 WXK_F8,
665 WXK_F9,
666 WXK_F10,
667 WXK_F11,
668 WXK_F12,
669 WXK_F13,
670 WXK_F14,
671 WXK_F15,
672 WXK_F16,
673 WXK_F17,
674 WXK_F18,
675 WXK_F19,
676 WXK_F20,
677 WXK_F21,
678 WXK_F22,
679 WXK_F23,
680 WXK_F24,
681 WXK_NUMLOCK,
682 WXK_SCROLL,
683 WXK_PAGEUP,
684 WXK_PAGEDOWN,
685
686 WXK_NUMPAD_SPACE,
687 WXK_NUMPAD_TAB,
688 WXK_NUMPAD_ENTER,
689 WXK_NUMPAD_F1,
690 WXK_NUMPAD_F2,
691 WXK_NUMPAD_F3,
692 WXK_NUMPAD_F4,
693 WXK_NUMPAD_HOME,
694 WXK_NUMPAD_LEFT,
695 WXK_NUMPAD_UP,
696 WXK_NUMPAD_RIGHT,
697 WXK_NUMPAD_DOWN,
698 WXK_NUMPAD_PRIOR,
699 WXK_NUMPAD_PAGEUP,
700 WXK_NUMPAD_NEXT,
701 WXK_NUMPAD_PAGEDOWN,
702 WXK_NUMPAD_END,
703 WXK_NUMPAD_BEGIN,
704 WXK_NUMPAD_INSERT,
705 WXK_NUMPAD_DELETE,
706 WXK_NUMPAD_EQUAL,
707 WXK_NUMPAD_MULTIPLY,
708 WXK_NUMPAD_ADD,
709 WXK_NUMPAD_SEPARATOR,
710 WXK_NUMPAD_SUBTRACT,
711 WXK_NUMPAD_DECIMAL,
9cbf6f6e
RD
712 WXK_NUMPAD_DIVIDE,
713
714 WXK_WINDOWS_LEFT,
715 WXK_WINDOWS_RIGHT,
716 WXK_WINDOWS_MENU
65fe3842 717
7bf85405
RD
718};
719
0a651eb8
RD
720
721// Bitmap flags
722enum wxBitmapType
723{
724 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
725 wxBITMAP_TYPE_BMP,
726 wxBITMAP_TYPE_BMP_RESOURCE,
727 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
728 wxBITMAP_TYPE_ICO,
729 wxBITMAP_TYPE_ICO_RESOURCE,
730 wxBITMAP_TYPE_CUR,
731 wxBITMAP_TYPE_CUR_RESOURCE,
732 wxBITMAP_TYPE_XBM,
733 wxBITMAP_TYPE_XBM_DATA,
734 wxBITMAP_TYPE_XPM,
735 wxBITMAP_TYPE_XPM_DATA,
736 wxBITMAP_TYPE_TIF,
737 wxBITMAP_TYPE_TIF_RESOURCE,
738 wxBITMAP_TYPE_GIF,
739 wxBITMAP_TYPE_GIF_RESOURCE,
740 wxBITMAP_TYPE_PNG,
741 wxBITMAP_TYPE_PNG_RESOURCE,
742 wxBITMAP_TYPE_JPEG,
743 wxBITMAP_TYPE_JPEG_RESOURCE,
744 wxBITMAP_TYPE_PNM,
745 wxBITMAP_TYPE_PNM_RESOURCE,
746 wxBITMAP_TYPE_PCX,
747 wxBITMAP_TYPE_PCX_RESOURCE,
748 wxBITMAP_TYPE_PICT,
749 wxBITMAP_TYPE_PICT_RESOURCE,
750 wxBITMAP_TYPE_ICON,
751 wxBITMAP_TYPE_ICON_RESOURCE,
68320e40 752 wxBITMAP_TYPE_ANI,
ce914f73 753 wxBITMAP_TYPE_IFF,
0a651eb8
RD
754 wxBITMAP_TYPE_MACCURSOR,
755 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
756 wxBITMAP_TYPE_ANY = 50
757};
758
759
760
761
762// Standard cursors
763enum wxStockCursor
764{
e9159fe8 765 wxCURSOR_NONE,
0a651eb8 766 wxCURSOR_ARROW,
e9159fe8 767 wxCURSOR_RIGHT_ARROW,
0a651eb8
RD
768 wxCURSOR_BULLSEYE,
769 wxCURSOR_CHAR,
770 wxCURSOR_CROSS,
771 wxCURSOR_HAND,
772 wxCURSOR_IBEAM,
773 wxCURSOR_LEFT_BUTTON,
774 wxCURSOR_MAGNIFIER,
775 wxCURSOR_MIDDLE_BUTTON,
776 wxCURSOR_NO_ENTRY,
777 wxCURSOR_PAINT_BRUSH,
778 wxCURSOR_PENCIL,
779 wxCURSOR_POINT_LEFT,
780 wxCURSOR_POINT_RIGHT,
781 wxCURSOR_QUESTION_ARROW,
782 wxCURSOR_RIGHT_BUTTON,
783 wxCURSOR_SIZENESW,
784 wxCURSOR_SIZENS,
785 wxCURSOR_SIZENWSE,
786 wxCURSOR_SIZEWE,
787 wxCURSOR_SIZING,
788 wxCURSOR_SPRAYCAN,
789 wxCURSOR_WAIT,
790 wxCURSOR_WATCH,
791 wxCURSOR_BLANK,
792 wxCURSOR_DEFAULT,
0a651eb8
RD
793 wxCURSOR_ARROWWAIT,
794 wxCURSOR_MAX
795};
7bf85405
RD
796
797
cf694132
RD
798
799typedef enum {
800 wxPAPER_NONE, // Use specific dimensions
801 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
802 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
803 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
804 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
805 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
806 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
807 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
808 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
809 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
810 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
811 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
812 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
813 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
814 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
815 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
816 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
817 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
818 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
819 wxPAPER_10X14, // 10-by-14-inch sheet
820 wxPAPER_11X17, // 11-by-17-inch sheet
821 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
822 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
823 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
824 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
825 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
826 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
827 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
828 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
829 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
830 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
831 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
832 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
833 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
834 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
835 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
836 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
837 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
838 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
839 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
840 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
841 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
842
843 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
844 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
845 wxPAPER_9X11, // 9 x 11 in
846 wxPAPER_10X11, // 10 x 11 in
847 wxPAPER_15X11, // 15 x 11 in
848 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
849 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
850 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
851 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
852 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
853 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
854 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
855 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
856 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
857 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
858 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
859 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
860 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
861 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
862 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
863 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
864 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
865 wxPAPER_A2, // A2 420 x 594 mm
866 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
867 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
868
869} wxPaperSize ;
870
bb0054cd
RD
871typedef enum {
872 wxDUPLEX_SIMPLEX, // Non-duplex
873 wxDUPLEX_HORIZONTAL,
874 wxDUPLEX_VERTICAL
875} wxDuplexMode;
876
cf694132
RD
877
878
e9159fe8
RD
879// menu and toolbar item kinds
880enum wxItemKind
881{
546bfbea
VS
882 wxITEM_SEPARATOR = -1,
883 wxITEM_NORMAL,
884 wxITEM_CHECK,
885 wxITEM_RADIO,
886 wxITEM_MAX
e9159fe8
RD
887};
888
23bed520
RD
889enum wxHitTest
890{
891 wxHT_NOWHERE,
892
893 // scrollbar
894 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
895 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
896 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
897 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
898 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
899 wxHT_SCROLLBAR_THUMB, // on the thumb
900 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
901 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
902 wxHT_SCROLLBAR_LAST,
903
904 // window
905 wxHT_WINDOW_OUTSIDE, // not in this window at all
906 wxHT_WINDOW_INSIDE, // in the client area
907 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
908 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
909 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
910
911 wxHT_MAX
912};
913
914
3ef86e32
RD
915%{
916#if ! wxUSE_HOTKEY
917enum wxHotkeyModifier
918{
919 wxMOD_NONE = 0,
920 wxMOD_ALT = 1,
921 wxMOD_CONTROL = 2,
922 wxMOD_SHIFT = 4,
923 wxMOD_WIN = 8
924};
925#define wxEVT_HOTKEY 9999
926#endif
927%}
928
929enum wxHotkeyModifier
930{
931 wxMOD_NONE = 0,
932 wxMOD_ALT = 1,
933 wxMOD_CONTROL = 2,
934 wxMOD_SHIFT = 4,
935 wxMOD_WIN = 8
936};
937
938
939enum wxUpdateUI
940{
941 wxUPDATE_UI_NONE = 0x0000,
942 wxUPDATE_UI_RECURSE = 0x0001,
943 wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle
944};
945
946
23bed520 947
7bf85405
RD
948//---------------------------------------------------------------------------
949//---------------------------------------------------------------------------
950
951/*
952 * Event types
953 *
954 */
955enum wxEventType {
956 wxEVT_NULL = 0,
957 wxEVT_FIRST = 10000,
958
959 // New names
960 wxEVT_COMMAND_BUTTON_CLICKED,
961 wxEVT_COMMAND_CHECKBOX_CLICKED,
962 wxEVT_COMMAND_CHOICE_SELECTED,
963 wxEVT_COMMAND_LISTBOX_SELECTED,
964 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
965 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
3af4e610 966 wxEVT_COMMAND_SPINCTRL_UPDATED,
7bf85405
RD
967 wxEVT_COMMAND_TEXT_UPDATED,
968 wxEVT_COMMAND_TEXT_ENTER,
c7e7022c 969 wxEVT_COMMAND_TEXT_URL,
00b6c4e3 970 wxEVT_COMMAND_TEXT_MAXLEN,
7bf85405
RD
971 wxEVT_COMMAND_MENU_SELECTED,
972 wxEVT_COMMAND_SLIDER_UPDATED,
973 wxEVT_COMMAND_RADIOBOX_SELECTED,
974 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
975// wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
976 wxEVT_COMMAND_SCROLLBAR_UPDATED,
977 wxEVT_COMMAND_VLBOX_SELECTED,
978 wxEVT_COMMAND_COMBOBOX_SELECTED,
979 wxEVT_COMMAND_TOOL_CLICKED,
980 wxEVT_COMMAND_TOOL_RCLICKED,
981 wxEVT_COMMAND_TOOL_ENTER,
982 wxEVT_SET_FOCUS,
983 wxEVT_KILL_FOCUS,
7b7ac0ab 984 wxEVT_CHILD_FOCUS,
d1679124 985 wxEVT_MOUSEWHEEL,
7bf85405
RD
986
987/* Mouse event types */
988 wxEVT_LEFT_DOWN,
989 wxEVT_LEFT_UP,
990 wxEVT_MIDDLE_DOWN,
991 wxEVT_MIDDLE_UP,
992 wxEVT_RIGHT_DOWN,
993 wxEVT_RIGHT_UP,
994 wxEVT_MOTION,
995 wxEVT_ENTER_WINDOW,
996 wxEVT_LEAVE_WINDOW,
997 wxEVT_LEFT_DCLICK,
998 wxEVT_MIDDLE_DCLICK,
999 wxEVT_RIGHT_DCLICK,
1000
6d26dc89
RD
1001 wxEVT_MOUSE_CAPTURE_CHANGED,
1002
7bf85405 1003 // Non-client mouse events
d1679124 1004 wxEVT_NC_LEFT_DOWN,
7bf85405
RD
1005 wxEVT_NC_LEFT_UP,
1006 wxEVT_NC_MIDDLE_DOWN,
1007 wxEVT_NC_MIDDLE_UP,
1008 wxEVT_NC_RIGHT_DOWN,
1009 wxEVT_NC_RIGHT_UP,
1010 wxEVT_NC_MOTION,
1011 wxEVT_NC_ENTER_WINDOW,
1012 wxEVT_NC_LEAVE_WINDOW,
1013 wxEVT_NC_LEFT_DCLICK,
1014 wxEVT_NC_MIDDLE_DCLICK,
1015 wxEVT_NC_RIGHT_DCLICK,
1016
203c2f9a
RD
1017 wxEVT_SET_CURSOR,
1018
7bf85405
RD
1019/* Character input event type */
1020 wxEVT_CHAR,
8bf5d46e
RD
1021 wxEVT_KEY_DOWN,
1022 wxEVT_KEY_UP,
1023 wxEVT_CHAR_HOOK,
3ef86e32 1024 wxEVT_HOTKEY,
7bf85405
RD
1025
1026 /*
1027 * Scrollbar event identifiers
1028 */
1029 wxEVT_SCROLL_TOP,
1030 wxEVT_SCROLL_BOTTOM,
1031 wxEVT_SCROLL_LINEUP,
1032 wxEVT_SCROLL_LINEDOWN,
1033 wxEVT_SCROLL_PAGEUP,
1034 wxEVT_SCROLL_PAGEDOWN,
1035 wxEVT_SCROLL_THUMBTRACK,
26b9cf27 1036 wxEVT_SCROLL_THUMBRELEASE,
83f3dd45 1037 wxEVT_SCROLL_ENDSCROLL,
7bf85405 1038
bb0054cd
RD
1039 /*
1040 * Scrolled Window
1041 */
1042 wxEVT_SCROLLWIN_TOP,
1043 wxEVT_SCROLLWIN_BOTTOM,
1044 wxEVT_SCROLLWIN_LINEUP,
1045 wxEVT_SCROLLWIN_LINEDOWN,
1046 wxEVT_SCROLLWIN_PAGEUP,
1047 wxEVT_SCROLLWIN_PAGEDOWN,
1048 wxEVT_SCROLLWIN_THUMBTRACK,
26b9cf27 1049 wxEVT_SCROLLWIN_THUMBRELEASE,
bb0054cd 1050
7bf85405
RD
1051 wxEVT_SIZE = wxEVT_FIRST + 200,
1052 wxEVT_MOVE,
3ef86e32
RD
1053 wxEVT_SIZING,
1054 wxEVT_MOVING,
7bf85405
RD
1055 wxEVT_CLOSE_WINDOW,
1056 wxEVT_END_SESSION,
1057 wxEVT_QUERY_END_SESSION,
1058 wxEVT_ACTIVATE_APP,
1059 wxEVT_POWER,
7bf85405
RD
1060 wxEVT_ACTIVATE,
1061 wxEVT_CREATE,
1062 wxEVT_DESTROY,
1063 wxEVT_SHOW,
1064 wxEVT_ICONIZE,
1065 wxEVT_MAXIMIZE,
7bf85405
RD
1066 wxEVT_PAINT,
1067 wxEVT_ERASE_BACKGROUND,
1068 wxEVT_NC_PAINT,
1069 wxEVT_PAINT_ICON,
afb810d9
RD
1070 wxEVT_MENU_OPEN,
1071 wxEVT_MENU_CLOSE,
7bf85405 1072 wxEVT_MENU_HIGHLIGHT,
88c7f3f9 1073 wxEVT_CONTEXT_MENU,
7bf85405 1074 wxEVT_SYS_COLOUR_CHANGED,
be43cc44 1075 wxEVT_DISPLAY_CHANGED,
7bf85405
RD
1076 wxEVT_SETTING_CHANGED,
1077 wxEVT_QUERY_NEW_PALETTE,
1078 wxEVT_PALETTE_CHANGED,
1079 wxEVT_JOY_BUTTON_DOWN,
1080 wxEVT_JOY_BUTTON_UP,
1081 wxEVT_JOY_MOVE,
1082 wxEVT_JOY_ZMOVE,
1083 wxEVT_DROP_FILES,
1084 wxEVT_DRAW_ITEM,
1085 wxEVT_MEASURE_ITEM,
1086 wxEVT_COMPARE_ITEM,
1087 wxEVT_INIT_DIALOG,
1088 wxEVT_IDLE,
1089 wxEVT_UPDATE_UI,
1090
bb0054cd 1091
7bf85405
RD
1092 /* Generic command events */
1093 // Note: a click is a higher-level event
1094 // than button down/up
1095 wxEVT_COMMAND_LEFT_CLICK,
1096 wxEVT_COMMAND_LEFT_DCLICK,
1097 wxEVT_COMMAND_RIGHT_CLICK,
1098 wxEVT_COMMAND_RIGHT_DCLICK,
1099 wxEVT_COMMAND_SET_FOCUS,
1100 wxEVT_COMMAND_KILL_FOCUS,
1101 wxEVT_COMMAND_ENTER,
1102
2f90df85
RD
1103 wxEVT_NAVIGATION_KEY,
1104
f6bcfd97
BP
1105 wxEVT_TIMER,
1106
7bf85405
RD
1107};
1108
1109
1110
1111
bb0054cd 1112//----------------------------------------------------------------------