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