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