]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/_defs.i
ifdef'd out wxEmptyString. This is defined in string.cpp.
[wxWidgets.git] / utils / 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;
26class wxCheckBox;
27class wxCheckListBox;
28class wxChoice;
29class wxClientDC;
7bf85405 30class wxCloseEvent;
af309447
RD
31class wxColourData;
32class wxColourDialog;
33class wxColour;
34class wxComboBox;
7bf85405 35class wxCommandEvent;
af309447
RD
36class wxConfig;
37class wxControl;
38class wxCursor;
39class wxDC;
40class wxDialog;
41class wxDirDialog;
42class wxDropFilesEvent;
7bf85405 43class wxEraseEvent;
af309447
RD
44class wxEvent;
45class wxEvtHandler;
46class wxFileDialog;
7bf85405 47class wxFocusEvent;
af309447
RD
48class wxFontData;
49class wxFontDialog;
50class wxFont;
51class wxFrame;
52class wxGauge;
53class wxGridCell;
54class wxGridEvent;
55class wxGrid;
7bf85405 56class wxIconizeEvent;
af309447 57class wxIcon;
7bf85405 58class wxIdleEvent;
af309447
RD
59class wxImageList;
60class wxIndividualLayoutConstraint;
61class wxInitDialogEvent;
62class wxJoystickEvent;
63class wxKeyEvent;
64class wxLayoutAlgorithm;
65class wxLayoutConstraints;
66class wxListBox;
67class wxListCtrl;
68class wxListEvent;
69class wxListItem;
70class wxMDIChildFrame;
71class wxMDIClientWindow;
72class wxMDIParentFrame;
7bf85405 73class wxMask;
af309447 74class wxMaximizeEvent;
7bf85405 75class wxMemoryDC;
af309447
RD
76class wxMenuBar;
77class wxMenuEvent;
78class wxMenuItem;
79class wxMenu;
80class wxMessageDialog;
81class wxMetaFileDC;
82class wxMiniFrame;
83class wxMouseEvent;
84class wxMoveEvent;
85class wxNotebookEvent;
86class wxNotebook;
87class wxPageSetupData;
88class wxPageSetupDialog;
7bf85405 89class wxPaintDC;
af309447
RD
90class wxPaintEvent;
91class wxPalette;
92class wxPanel;
93class wxPen;
94class wxPoint;
7bf85405 95class wxPostScriptDC;
af309447
RD
96class wxPrintData;
97class wxPrintDialog;
7bf85405 98class wxPrinterDC;
af309447 99class wxQueryLayoutInfoEvent;
7bf85405
RD
100class wxRadioBox;
101class wxRadioButton;
af309447
RD
102class wxRealPoint;
103class wxRect;
104class wxRegionIterator;
105class wxRegion;
106class wxSashEvent;
107class wxSashLayoutWindow;
108class wxSashWindow;
109class wxScreenDC;
110class wxScrollBar;
111class wxScrollEvent;
d426c97e 112class wxScrollWinEvent;
af309447
RD
113class wxScrolledWindow;
114class wxShowEvent;
115class wxSingleChoiceDialog;
116class wxSizeEvent;
117class wxSize;
7bf85405 118class wxSlider;
af309447
RD
119class wxSpinButton;
120class wxSpinEvent;
121class wxSplitterWindow;
122class wxStaticBitmap;
123class wxStaticBox;
124class wxStaticText;
125class wxStatusBar;
126class wxSysColourChangedEvent;
127class wxTaskBarIcon;
128class wxTextCtrl;
129class wxTextEntryDialog;
130class wxTimer;
131class wxToolBarTool;
132class wxToolBar;
133class wxToolTip;
134class wxTreeCtrl;
135class wxTreeEvent;
136class wxTreeItemData;
137class wxTreeItemId;
138class wxUpdateUIEvent;
139class wxWindowDC;
140class wxWindow;
2f90df85
RD
141class wxSizer;
142class wxBoxSizer;
143class wxStaticBoxSizer;
7bf85405 144
af309447
RD
145class wxPyApp;
146class wxPyMenu;
7bf85405 147class wxPyTimer;
af309447 148
7bf85405
RD
149
150//---------------------------------------------------------------------------
151
152// some definitions for SWIG only
153typedef unsigned char byte;
154typedef short int WXTYPE;
155typedef int wxWindowID;
156typedef unsigned int uint;
157typedef signed int EBool;
c127177f 158typedef unsigned int size_t
bb0054cd 159typedef int wxPrintQuality;
7bf85405
RD
160
161//---------------------------------------------------------------------------
162
163// General numeric #define's and etc. Making them all enums makes SWIG use the
164// real macro when making the Python Int
165
166enum {
167 wxMAJOR_VERSION,
168 wxMINOR_VERSION,
169 wxRELEASE_NUMBER,
170
08127323 171 wxNOT_FOUND,
7bf85405
RD
172
173 wxVSCROLL,
174 wxHSCROLL,
175 wxCAPTION,
176 wxDOUBLE_BORDER,
177 wxSUNKEN_BORDER,
178 wxRAISED_BORDER,
179 wxBORDER,
180 wxSIMPLE_BORDER,
181 wxSTATIC_BORDER,
182 wxTRANSPARENT_WINDOW,
183 wxNO_BORDER,
184 wxUSER_COLOURS,
185 wxNO_3D,
186//wxOVERRIDE_KEY_TRANSLATIONS,
187 wxTAB_TRAVERSAL,
1afc06c2 188 wxWANTS_CHARS,
7bf85405
RD
189 wxHORIZONTAL,
190 wxVERTICAL,
191 wxBOTH,
192 wxCENTER_FRAME,
1afc06c2
RD
193 wxCENTRE_ON_SCREEN,
194 wxCENTER_ON_SCREEN,
195
7bf85405
RD
196 wxSTAY_ON_TOP,
197 wxICONIZE,
198 wxMINIMIZE,
199 wxMAXIMIZE,
200 wxTHICK_FRAME,
201 wxSYSTEM_MENU,
202 wxMINIMIZE_BOX,
203 wxMAXIMIZE_BOX,
204 wxTINY_CAPTION_HORIZ,
205 wxTINY_CAPTION_VERT,
206 wxRESIZE_BOX,
207 wxRESIZE_BORDER,
208 wxDIALOG_MODAL,
209 wxDIALOG_MODELESS,
210 wxDEFAULT_FRAME_STYLE,
211 wxDEFAULT_DIALOG_STYLE,
b8b8dda7
RD
212
213 wxFRAME_TOOL_WINDOW,
bb0054cd 214 wxFRAME_FLOAT_ON_PARENT,
1afc06c2
RD
215 wxED_CLIENT_MARGIN,
216 wxED_BUTTONS_BOTTOM,
217 wxED_BUTTONS_RIGHT,
218 wxED_STATIC_LINE,
219 wxEXT_DIALOG_STYLE,
bb0054cd 220
08127323 221 wxCLIP_CHILDREN,
b8b8dda7 222
7bf85405
RD
223 wxRETAINED,
224 wxBACKINGSTORE,
225 wxTB_3DBUTTONS,
226 wxTB_HORIZONTAL,
227 wxTB_VERTICAL,
9c039d08 228 wxTB_FLAT,
7bf85405
RD
229 wxCOLOURED,
230 wxFIXED_LENGTH,
231 wxALIGN_LEFT,
232 wxALIGN_CENTER,
233 wxALIGN_CENTRE,
234 wxALIGN_RIGHT,
2f90df85
RD
235 wxALIGN_BOTTOM,
236 wxALIGN_TOP,
7bf85405
RD
237 wxLB_NEEDED_SB,
238 wxLB_ALWAYS_SB,
239 wxLB_SORT,
240 wxLB_SINGLE,
241 wxLB_MULTIPLE,
242 wxLB_EXTENDED,
243 wxLB_OWNERDRAW,
244 wxLB_HSCROLL,
245 wxPROCESS_ENTER,
246 wxPASSWORD,
247 wxTE_PROCESS_ENTER,
248 wxTE_PASSWORD,
249 wxTE_READONLY,
8bf5d46e 250 wxTE_RICH,
7bf85405 251 wxTE_MULTILINE,
7bf85405
RD
252 wxCB_SIMPLE,
253 wxCB_DROPDOWN,
254 wxCB_SORT,
255 wxCB_READONLY,
256 wxRA_HORIZONTAL,
257 wxRA_VERTICAL,
ed175610
RD
258 wxRA_SPECIFY_ROWS,
259 wxRA_SPECIFY_COLS,
7bf85405
RD
260 wxRB_GROUP,
261 wxGA_PROGRESSBAR,
262 wxGA_HORIZONTAL,
263 wxGA_VERTICAL,
bb0054cd 264 wxGA_SMOOTH,
7bf85405
RD
265 wxSL_HORIZONTAL,
266 wxSL_VERTICAL,
267 wxSL_AUTOTICKS,
268 wxSL_LABELS,
269 wxSL_LEFT,
270 wxSL_TOP,
271 wxSL_RIGHT,
272 wxSL_BOTTOM,
273 wxSL_BOTH,
274 wxSL_SELRANGE,
275 wxSB_HORIZONTAL,
276 wxSB_VERTICAL,
cf694132 277 wxST_SIZEGRIP,
7bf85405
RD
278 wxBU_AUTODRAW,
279 wxBU_NOAUTODRAW,
280 wxTR_HAS_BUTTONS,
281 wxTR_EDIT_LABELS,
d5c9047a 282 wxTR_LINES_AT_ROOT,
8bf5d46e 283 wxTR_MULTIPLE,
1afc06c2 284 wxTR_SINGLE,
8bf5d46e 285 wxTR_HAS_VARIABLE_ROW_HEIGHT,
7bf85405
RD
286 wxLC_ICON,
287 wxLC_SMALL_ICON,
288 wxLC_LIST,
289 wxLC_REPORT,
290 wxLC_ALIGN_TOP,
291 wxLC_ALIGN_LEFT,
292 wxLC_AUTOARRANGE,
293 wxLC_USER_TEXT,
294 wxLC_EDIT_LABELS,
295 wxLC_NO_HEADER,
296 wxLC_NO_SORT_HEADER,
297 wxLC_SINGLE_SEL,
298 wxLC_SORT_ASCENDING,
299 wxLC_SORT_DESCENDING,
300 wxLC_MASK_TYPE,
301 wxLC_MASK_ALIGN,
302 wxLC_MASK_SORT,
303 wxSP_VERTICAL,
304 wxSP_HORIZONTAL,
305 wxSP_ARROW_KEYS,
306 wxSP_WRAP,
307 wxSP_NOBORDER,
308 wxSP_3D,
309 wxSP_BORDER,
7bf85405
RD
310 wxFLOOD_SURFACE,
311 wxFLOOD_BORDER,
312 wxODDEVEN_RULE,
313 wxWINDING_RULE,
314 wxTOOL_TOP,
315 wxTOOL_BOTTOM,
316 wxTOOL_LEFT,
317 wxTOOL_RIGHT,
318 wxOK,
319 wxYES_NO,
320 wxCANCEL,
321 wxYES,
322 wxNO,
1afc06c2
RD
323 wxNO_DEFAULT,
324 wxYES_DEFAULT,
7bf85405
RD
325 wxICON_EXCLAMATION,
326 wxICON_HAND,
327 wxICON_QUESTION,
328 wxICON_INFORMATION,
329 wxICON_STOP,
330 wxICON_ASTERISK,
331 wxICON_MASK,
1afc06c2
RD
332 wxICON_WARNING,
333 wxICON_ERROR,
334
335 wxFORWARD,
336 wxBACKWARD,
337 wxRESET,
338 wxHELP,
339 wxMORE,
340 wxSETUP,
341
7bf85405
RD
342 wxCENTRE,
343 wxCENTER,
344 wxSIZE_AUTO_WIDTH,
345 wxSIZE_AUTO_HEIGHT,
346 wxSIZE_AUTO,
347 wxSIZE_USE_EXISTING,
348 wxSIZE_ALLOW_MINUS_ONE,
08127323 349#ifndef __WXGTK__
7bf85405
RD
350 wxDF_TEXT,
351 wxDF_BITMAP,
352 wxDF_METAFILE,
353 wxDF_DIB,
354 wxDF_OEMTEXT,
355 wxDF_FILENAME,
08127323 356#endif
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,
386 wxID_FILE1,
387 wxID_FILE2,
388 wxID_FILE3,
389 wxID_FILE4,
390 wxID_FILE5,
391 wxID_FILE6,
392 wxID_FILE7,
393 wxID_FILE8,
394 wxID_FILE9,
395 wxID_OK,
396 wxID_CANCEL,
397 wxID_APPLY,
398 wxID_YES,
399 wxID_NO,
cf694132 400 wxID_STATIC,
1afc06c2 401
7bf85405
RD
402 wxBITMAP_TYPE_BMP,
403 wxBITMAP_TYPE_BMP_RESOURCE,
404 wxBITMAP_TYPE_ICO,
405 wxBITMAP_TYPE_ICO_RESOURCE,
406 wxBITMAP_TYPE_CUR,
407 wxBITMAP_TYPE_CUR_RESOURCE,
408 wxBITMAP_TYPE_XBM,
409 wxBITMAP_TYPE_XBM_DATA,
410 wxBITMAP_TYPE_XPM,
411 wxBITMAP_TYPE_XPM_DATA,
412 wxBITMAP_TYPE_TIF,
413 wxBITMAP_TYPE_TIF_RESOURCE,
414 wxBITMAP_TYPE_GIF,
415 wxBITMAP_TYPE_GIF_RESOURCE,
416 wxBITMAP_TYPE_PNG,
417 wxBITMAP_TYPE_PNG_RESOURCE,
418 wxBITMAP_TYPE_ANY,
419 wxBITMAP_TYPE_RESOURCE,
cf694132 420 wxBITMAP_TYPE_JPEG,
7bf85405
RD
421
422 wxOPEN,
423 wxSAVE,
424 wxHIDE_READONLY,
425 wxOVERWRITE_PROMPT,
426
427 wxACCEL_ALT,
428 wxACCEL_CTRL,
429 wxACCEL_SHIFT,
bb0054cd
RD
430
431 wxPD_AUTO_HIDE,
432 wxPD_APP_MODAL,
433 wxPD_CAN_ABORT,
a08cbc01
RD
434 wxPD_ELAPSED_TIME,
435 wxPD_ESTIMATED_TIME,
436 wxPD_REMAINING_TIME,
bb0054cd 437
8bf5d46e 438 wxMENU_TEAROFF,
1afc06c2 439 wxMB_DOCKABLE,
8bf5d46e
RD
440 wxNO_FULL_REPAINT_ON_RESIZE,
441
1afc06c2
RD
442 wxLEFT,
443 wxRIGHT,
444 wxUP,
445 wxDOWN,
446 wxALL,
447 wxTOP,
448 wxBOTTOM,
449
450 wxNORTH,
451 wxSOUTH,
452 wxEAST,
453 wxWEST,
454
455 wxSTRETCH_NOT,
456 wxSHRINK,
457 wxGROW,
458 wxEXPAND,
459
460 wxNB_FIXEDWIDTH,
461
462 wxLI_HORIZONTAL,
463 wxLI_VERTICAL,
464
465
466 wxHW_SCROLLBAR_NEVER,
467 wxHW_SCROLLBAR_AUTO,
468
7bf85405
RD
469};
470
471
cf694132
RD
472// // Standard error codes
473// enum ErrCode
474// {
475// ERR_PARAM = (-4000),
476// ERR_NODATA,
477// ERR_CANCEL,
478// ERR_SUCCESS = 0
479// };
7bf85405
RD
480
481
482enum {
483 wxDEFAULT ,
484 wxDECORATIVE,
485 wxROMAN,
486 wxSCRIPT,
487 wxSWISS,
488 wxMODERN,
489 wxTELETYPE,
490 wxVARIABLE,
491 wxFIXED,
492 wxNORMAL,
493 wxLIGHT,
494 wxBOLD,
495 wxITALIC,
496 wxSLANT,
497 wxSOLID,
498 wxDOT,
499 wxLONG_DASH,
500 wxSHORT_DASH,
501 wxDOT_DASH,
502 wxUSER_DASH,
503 wxTRANSPARENT,
504 wxSTIPPLE,
505 wxBDIAGONAL_HATCH,
506 wxCROSSDIAG_HATCH,
507 wxFDIAGONAL_HATCH,
508 wxCROSS_HATCH,
509 wxHORIZONTAL_HATCH,
510 wxVERTICAL_HATCH,
511 wxJOIN_BEVEL,
512 wxJOIN_MITER,
513 wxJOIN_ROUND,
514 wxCAP_ROUND,
515 wxCAP_PROJECTING,
516 wxCAP_BUTT
517};
518
519typedef enum {
520 wxCLEAR, // 0
521 wxXOR, // src XOR dst
522 wxINVERT, // NOT dst
523 wxOR_REVERSE, // src OR (NOT dst)
524 wxAND_REVERSE,// src AND (NOT dst)
525 wxCOPY, // src
526 wxAND, // src AND dst
527 wxAND_INVERT, // (NOT src) AND dst
528 wxNO_OP, // dst
529 wxNOR, // (NOT src) AND (NOT dst)
530 wxEQUIV, // (NOT src) XOR dst
531 wxSRC_INVERT, // (NOT src)
532 wxOR_INVERT, // (NOT src) OR dst
533 wxNAND, // (NOT src) OR (NOT dst)
534 wxOR, // src OR dst
535 wxSET, // 1
536 wxSRC_OR, // source _bitmap_ OR destination
537 wxSRC_AND // source _bitmap_ AND destination
538} form_ops_t;
539
540enum _Virtual_keycodes {
541 WXK_BACK = 8,
542 WXK_TAB = 9,
543 WXK_RETURN = 13,
544 WXK_ESCAPE = 27,
545 WXK_SPACE = 32,
546 WXK_DELETE = 127,
547
548 WXK_START = 300,
549 WXK_LBUTTON,
550 WXK_RBUTTON,
551 WXK_CANCEL,
552 WXK_MBUTTON,
553 WXK_CLEAR,
554 WXK_SHIFT,
555 WXK_CONTROL,
556 WXK_MENU,
557 WXK_PAUSE,
558 WXK_CAPITAL,
559 WXK_PRIOR, // Page up
560 WXK_NEXT, // Page down
561 WXK_END,
562 WXK_HOME,
563 WXK_LEFT,
564 WXK_UP,
565 WXK_RIGHT,
566 WXK_DOWN,
567 WXK_SELECT,
568 WXK_PRINT,
569 WXK_EXECUTE,
570 WXK_SNAPSHOT,
571 WXK_INSERT,
572 WXK_HELP,
573 WXK_NUMPAD0,
574 WXK_NUMPAD1,
575 WXK_NUMPAD2,
576 WXK_NUMPAD3,
577 WXK_NUMPAD4,
578 WXK_NUMPAD5,
579 WXK_NUMPAD6,
580 WXK_NUMPAD7,
581 WXK_NUMPAD8,
582 WXK_NUMPAD9,
583 WXK_MULTIPLY,
584 WXK_ADD,
585 WXK_SEPARATOR,
586 WXK_SUBTRACT,
587 WXK_DECIMAL,
588 WXK_DIVIDE,
589 WXK_F1,
590 WXK_F2,
591 WXK_F3,
592 WXK_F4,
593 WXK_F5,
594 WXK_F6,
595 WXK_F7,
596 WXK_F8,
597 WXK_F9,
598 WXK_F10,
599 WXK_F11,
600 WXK_F12,
601 WXK_F13,
602 WXK_F14,
603 WXK_F15,
604 WXK_F16,
605 WXK_F17,
606 WXK_F18,
607 WXK_F19,
608 WXK_F20,
609 WXK_F21,
610 WXK_F22,
611 WXK_F23,
612 WXK_F24,
613 WXK_NUMLOCK,
614 WXK_SCROLL,
615 WXK_PAGEUP,
616 WXK_PAGEDOWN
617};
618
619typedef enum {
9c039d08 620 wxCURSOR_NONE = 0,
7bf85405
RD
621 wxCURSOR_ARROW = 1,
622 wxCURSOR_BULLSEYE,
623 wxCURSOR_CHAR,
624 wxCURSOR_CROSS,
625 wxCURSOR_HAND,
626 wxCURSOR_IBEAM,
627 wxCURSOR_LEFT_BUTTON,
628 wxCURSOR_MAGNIFIER,
629 wxCURSOR_MIDDLE_BUTTON,
630 wxCURSOR_NO_ENTRY,
631 wxCURSOR_PAINT_BRUSH,
632 wxCURSOR_PENCIL,
633 wxCURSOR_POINT_LEFT,
634 wxCURSOR_POINT_RIGHT,
635 wxCURSOR_QUESTION_ARROW,
636 wxCURSOR_RIGHT_BUTTON,
637 wxCURSOR_SIZENESW,
638 wxCURSOR_SIZENS,
639 wxCURSOR_SIZENWSE,
640 wxCURSOR_SIZEWE,
641 wxCURSOR_SIZING,
642 wxCURSOR_SPRAYCAN,
643 wxCURSOR_WAIT,
644 wxCURSOR_WATCH,
645 wxCURSOR_BLANK
9c039d08
RD
646// #ifndef __WXMSW__
647// /* Not yet implemented for Windows */
648// , wxCURSOR_CROSS_REVERSE,
649// wxCURSOR_DOUBLE_ARROW,
650// wxCURSOR_BASED_ARROW_UP,
651// wxCURSOR_BASED_ARROW_DOWN
652// #endif
7bf85405
RD
653} _standard_cursors_t;
654
655
cf694132
RD
656
657typedef enum {
658 wxPAPER_NONE, // Use specific dimensions
659 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
660 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
661 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
662 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
663 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
664 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
665 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
666 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
667 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
668 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
669 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
670 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
671 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
672 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
673 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
674 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
675 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
676 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
677 wxPAPER_10X14, // 10-by-14-inch sheet
678 wxPAPER_11X17, // 11-by-17-inch sheet
679 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
680 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
681 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
682 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
683 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
684 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
685 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
686 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
687 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
688 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
689 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
690 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
691 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
692 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
693 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
694 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
695 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
696 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
697 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
698 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
699 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
700
701 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
702 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
703 wxPAPER_9X11, // 9 x 11 in
704 wxPAPER_10X11, // 10 x 11 in
705 wxPAPER_15X11, // 15 x 11 in
706 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
707 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
708 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
709 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
710 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
711 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
712 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
713 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
714 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
715 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
716 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
717 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
718 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
719 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
720 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
721 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
722 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
723 wxPAPER_A2, // A2 420 x 594 mm
724 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
725 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
726
727} wxPaperSize ;
728
bb0054cd
RD
729typedef enum {
730 wxDUPLEX_SIMPLEX, // Non-duplex
731 wxDUPLEX_HORIZONTAL,
732 wxDUPLEX_VERTICAL
733} wxDuplexMode;
734
cf694132
RD
735
736
7bf85405
RD
737#define FALSE 0
738#define false 0
739#define TRUE 1
740#define true 1
741
af309447 742const char* wxVERSION_STRING;
7bf85405
RD
743
744//---------------------------------------------------------------------------
745//---------------------------------------------------------------------------
746
747/*
748 * Event types
749 *
750 */
751enum wxEventType {
752 wxEVT_NULL = 0,
753 wxEVT_FIRST = 10000,
754
755 // New names
756 wxEVT_COMMAND_BUTTON_CLICKED,
757 wxEVT_COMMAND_CHECKBOX_CLICKED,
758 wxEVT_COMMAND_CHOICE_SELECTED,
759 wxEVT_COMMAND_LISTBOX_SELECTED,
760 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
761 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
762 wxEVT_COMMAND_TEXT_UPDATED,
763 wxEVT_COMMAND_TEXT_ENTER,
764 wxEVT_COMMAND_MENU_SELECTED,
765 wxEVT_COMMAND_SLIDER_UPDATED,
766 wxEVT_COMMAND_RADIOBOX_SELECTED,
767 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
768// wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
769 wxEVT_COMMAND_SCROLLBAR_UPDATED,
770 wxEVT_COMMAND_VLBOX_SELECTED,
771 wxEVT_COMMAND_COMBOBOX_SELECTED,
772 wxEVT_COMMAND_TOOL_CLICKED,
773 wxEVT_COMMAND_TOOL_RCLICKED,
774 wxEVT_COMMAND_TOOL_ENTER,
775 wxEVT_SET_FOCUS,
776 wxEVT_KILL_FOCUS,
777
778/* Mouse event types */
779 wxEVT_LEFT_DOWN,
780 wxEVT_LEFT_UP,
781 wxEVT_MIDDLE_DOWN,
782 wxEVT_MIDDLE_UP,
783 wxEVT_RIGHT_DOWN,
784 wxEVT_RIGHT_UP,
785 wxEVT_MOTION,
786 wxEVT_ENTER_WINDOW,
787 wxEVT_LEAVE_WINDOW,
788 wxEVT_LEFT_DCLICK,
789 wxEVT_MIDDLE_DCLICK,
790 wxEVT_RIGHT_DCLICK,
791
792 // Non-client mouse events
793 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
794 wxEVT_NC_LEFT_UP,
795 wxEVT_NC_MIDDLE_DOWN,
796 wxEVT_NC_MIDDLE_UP,
797 wxEVT_NC_RIGHT_DOWN,
798 wxEVT_NC_RIGHT_UP,
799 wxEVT_NC_MOTION,
800 wxEVT_NC_ENTER_WINDOW,
801 wxEVT_NC_LEAVE_WINDOW,
802 wxEVT_NC_LEFT_DCLICK,
803 wxEVT_NC_MIDDLE_DCLICK,
804 wxEVT_NC_RIGHT_DCLICK,
805
806/* Character input event type */
807 wxEVT_CHAR,
8bf5d46e
RD
808 wxEVT_KEY_DOWN,
809 wxEVT_KEY_UP,
810 wxEVT_CHAR_HOOK,
7bf85405
RD
811
812 /*
813 * Scrollbar event identifiers
814 */
815 wxEVT_SCROLL_TOP,
816 wxEVT_SCROLL_BOTTOM,
817 wxEVT_SCROLL_LINEUP,
818 wxEVT_SCROLL_LINEDOWN,
819 wxEVT_SCROLL_PAGEUP,
820 wxEVT_SCROLL_PAGEDOWN,
821 wxEVT_SCROLL_THUMBTRACK,
822
bb0054cd
RD
823 /*
824 * Scrolled Window
825 */
826 wxEVT_SCROLLWIN_TOP,
827 wxEVT_SCROLLWIN_BOTTOM,
828 wxEVT_SCROLLWIN_LINEUP,
829 wxEVT_SCROLLWIN_LINEDOWN,
830 wxEVT_SCROLLWIN_PAGEUP,
831 wxEVT_SCROLLWIN_PAGEDOWN,
832 wxEVT_SCROLLWIN_THUMBTRACK,
833
7bf85405
RD
834 wxEVT_SIZE = wxEVT_FIRST + 200,
835 wxEVT_MOVE,
836 wxEVT_CLOSE_WINDOW,
837 wxEVT_END_SESSION,
838 wxEVT_QUERY_END_SESSION,
839 wxEVT_ACTIVATE_APP,
840 wxEVT_POWER,
7bf85405
RD
841 wxEVT_ACTIVATE,
842 wxEVT_CREATE,
843 wxEVT_DESTROY,
844 wxEVT_SHOW,
845 wxEVT_ICONIZE,
846 wxEVT_MAXIMIZE,
847 wxEVT_MOUSE_CAPTURE_CHANGED,
848 wxEVT_PAINT,
849 wxEVT_ERASE_BACKGROUND,
850 wxEVT_NC_PAINT,
851 wxEVT_PAINT_ICON,
852 wxEVT_MENU_CHAR,
853 wxEVT_MENU_INIT,
854 wxEVT_MENU_HIGHLIGHT,
855 wxEVT_POPUP_MENU_INIT,
856 wxEVT_CONTEXT_MENU,
857 wxEVT_SYS_COLOUR_CHANGED,
858 wxEVT_SETTING_CHANGED,
859 wxEVT_QUERY_NEW_PALETTE,
860 wxEVT_PALETTE_CHANGED,
861 wxEVT_JOY_BUTTON_DOWN,
862 wxEVT_JOY_BUTTON_UP,
863 wxEVT_JOY_MOVE,
864 wxEVT_JOY_ZMOVE,
865 wxEVT_DROP_FILES,
866 wxEVT_DRAW_ITEM,
867 wxEVT_MEASURE_ITEM,
868 wxEVT_COMPARE_ITEM,
869 wxEVT_INIT_DIALOG,
870 wxEVT_IDLE,
871 wxEVT_UPDATE_UI,
872
bb0054cd 873
7bf85405
RD
874 /* Generic command events */
875 // Note: a click is a higher-level event
876 // than button down/up
877 wxEVT_COMMAND_LEFT_CLICK,
878 wxEVT_COMMAND_LEFT_DCLICK,
879 wxEVT_COMMAND_RIGHT_CLICK,
880 wxEVT_COMMAND_RIGHT_DCLICK,
881 wxEVT_COMMAND_SET_FOCUS,
882 wxEVT_COMMAND_KILL_FOCUS,
883 wxEVT_COMMAND_ENTER,
884
885 /* Tree control event types */
886 wxEVT_COMMAND_TREE_BEGIN_DRAG,
887 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
888 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
889 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
890 wxEVT_COMMAND_TREE_DELETE_ITEM,
891 wxEVT_COMMAND_TREE_GET_INFO,
892 wxEVT_COMMAND_TREE_SET_INFO,
893 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
894 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
630d84f2
RD
895 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
896 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
7bf85405
RD
897 wxEVT_COMMAND_TREE_SEL_CHANGED,
898 wxEVT_COMMAND_TREE_SEL_CHANGING,
899 wxEVT_COMMAND_TREE_KEY_DOWN,
900
901 /* List control event types */
902 wxEVT_COMMAND_LIST_BEGIN_DRAG,
903 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
904 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
905 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
906 wxEVT_COMMAND_LIST_DELETE_ITEM,
907 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
908 wxEVT_COMMAND_LIST_GET_INFO,
909 wxEVT_COMMAND_LIST_SET_INFO,
910 wxEVT_COMMAND_LIST_ITEM_SELECTED,
911 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
912 wxEVT_COMMAND_LIST_KEY_DOWN,
913 wxEVT_COMMAND_LIST_INSERT_ITEM,
914 wxEVT_COMMAND_LIST_COL_CLICK,
bb0054cd 915 wxEVT_COMMAND_LIST_ITEM_ACTIVATED,
2f90df85
RD
916 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK,
917 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
918
7bf85405
RD
919
920 /* Tab and notebook control event types */
921 wxEVT_COMMAND_TAB_SEL_CHANGED,
922 wxEVT_COMMAND_TAB_SEL_CHANGING,
923 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
bb0054cd
RD
924 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
925
926 /* splitter window */
927 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
928 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
929 wxEVT_COMMAND_SPLITTER_UNSPLIT,
930 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
08127323 931
2f90df85
RD
932 wxEVT_NAVIGATION_KEY,
933
7bf85405
RD
934};
935
936
937
938
bb0054cd 939//----------------------------------------------------------------------