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