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