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