]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_defs.i
Regenerate to add the new file toucan.png.
[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
ab1f7d2a 14//---------------------------------------------------------------------------
ab1f7d2a 15
214c4fbe 16// Globally turn on the autodoc feature
dd9f7fea
RD
17%feature("autodoc", "1"); // 0 == no param types, 1 == show param types
18
2f810297
RD
19// Turn on kwargs by default
20%feature("kwargs", "1");
21
9c605285
RD
22// Don't generate separate wrappers for each default args combination
23%feature("compactdefaultargs");
24
214c4fbe 25#if SWIG_VERSION < 0x010328
9c605285
RD
26// Don't generate default ctors or dtors if the C++ doesn't have them
27%feature("nodefault");
214c4fbe 28#else
9c605285 29// This is the SWIG 1.3.28 way to do the above...
214c4fbe
RD
30%feature("nodefaultctor");
31%feature("nodefaultdtor");
32#endif
33
69555b5c
RD
34// For all items that don't have a %rename already, give them a %rename that
35// removes the leading 'wx' (except for wxEVT_* items.)
36%rename("%(wxpy)s") "";
37
214c4fbe
RD
38// For now, just supress the warning about using Python keywords as parameter
39// names. Will need to come back later and correct these rather than just
40// hide them...
41#pragma SWIG nowarn=314
9c605285 42
ab1f7d2a 43//---------------------------------------------------------------------------
ab1f7d2a 44
214c4fbe
RD
45// Tell SWIG to wrap all the wrappers with our thread protection
46%define %threadWrapperOn
ab1f7d2a
RD
47%exception {
48 PyThreadState* __tstate = wxPyBeginAllowThreads();
49 $action
50 wxPyEndAllowThreads(__tstate);
51 if (PyErr_Occurred()) SWIG_fail;
52}
214c4fbe
RD
53%enddef
54
55// This one will turn off the generation of the thread wrapper code
56%define %threadWrapperOff
57%exception
58%enddef
ab1f7d2a 59
214c4fbe
RD
60// Turn it on by default
61%threadWrapperOn
ab1f7d2a
RD
62
63// This one can be used to add a check for an existing wxApp before the real
64// work is done. An exception is raised if there isn't one.
65%define MustHaveApp(name)
db9ba246
RD
66%exception name {
67 if (!wxPyCheckForApp()) SWIG_fail;
68 PyThreadState* __tstate = wxPyBeginAllowThreads();
69 $action
70 wxPyEndAllowThreads(__tstate);
71 if (PyErr_Occurred()) SWIG_fail;
72}
ab1f7d2a
RD
73%enddef
74
ab1f7d2a 75
1fce4e96
RD
76// This macro can be used to disable the releasing of the GIL when calling the
77// C++ function.
78%define KeepGIL(name)
79%exception name {
80 $action
81 if (PyErr_Occurred()) SWIG_fail;
82}
83%enddef
84
7bf85405 85//---------------------------------------------------------------------------
d14a1e28 86// some type definitions to simplify things for SWIG
af309447 87
d14a1e28
RD
88typedef int wxEventType;
89typedef unsigned int size_t;
90typedef unsigned int time_t;
91typedef unsigned char byte;
82bd6167 92typedef unsigned long wxUIntPtr;
d14a1e28 93
dd9f7fea
RD
94#define wxWindowID int
95#define wxCoord int
96#define wxInt32 int
97#define wxUint32 unsigned int
dd9f7fea 98
d14a1e28
RD
99
100//----------------------------------------------------------------------
101// Various SWIG macros and such
102
2b9048c5
RD
103#define %pythonAppend %feature("pythonappend")
104#define %pythonPrepend %feature("pythonprepend")
2f810297 105#define %noautodoc %feature("noautodoc")
3ea6e0ec 106
214c4fbe 107#if SWIG_VERSION >= 0x010327
080b9cbc 108#undef %kwargs
214c4fbe
RD
109#define %kwargs %feature("kwargs", "1")
110#define %nokwargs %feature("kwargs", "0")
111#else
112#define %kwargs %feature("kwargs")
113#define %nokwargs %feature("nokwargs")
114#endif
115
116#define %disownarg(typespec) %typemap(in) typespec = SWIGTYPE* DISOWN
117#define %cleardisown(typespec) %typemap(in) typespec
118
607a3fa0
RD
119#define %ref %feature("ref")
120#define %unref %feature("unref")
d14a1e28 121
d14a1e28
RD
122
123#ifndef %pythoncode
124#define %pythoncode %insert("python")
dd9f7fea 125#endif
d14a1e28
RD
126
127#define WXUNUSED(x) x
128
129
130// Given the name of a wxChar (or wxString) constant in C++, make
131// a static wxString for wxPython, and also let SWIG wrap it.
132%define MAKE_CONST_WXSTRING(strname)
133 %{ static const wxString wxPy##strname(wx##strname); %}
134 %immutable;
1b8c7ba6
RD
135 %rename(strname) wxPy##strname;
136 const wxString wxPy##strname;
d14a1e28
RD
137 %mutable;
138%enddef
139
b2dc1044 140%define MAKE_CONST_WXSTRING2(strname, val)
089142a5 141 %{ static const wxString wxPy##strname(val); %}
b2dc1044 142 %immutable;
1b8c7ba6
RD
143 %rename(strname) wxPy##strname;
144 const wxString wxPy##strname;
b2dc1044
RD
145 %mutable;
146%enddef
147
148%define MAKE_CONST_WXSTRING_NOSWIG(strname)
149 %{ static const wxString wxPy##strname(wx##strname); %}
150%enddef
b1462dfa 151
d14a1e28
RD
152// Generate code in the module init for the event types, since they may not be
153// initialized yet when they are used in the static swig_const_table.
154%typemap(consttab) wxEventType; // TODO: how to prevent code inserted into the consttab?
155%typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));";
156
157
dd9f7fea 158
d07d2bc9
RD
159//----------------------------------------------------------------------
160// Macros for the docstring and autodoc features of SWIG. These will
161// help make the code look more readable, and pretty, as well as help
162// reduce typing in some cases.
dd9f7fea
RD
163
164// Set the docsring for the given full or partial declaration
d07d2bc9
RD
165#ifdef _DO_FULL_DOCS
166 %define DocStr(decl, docstr, details)
167 %feature("docstring") decl docstr details;
168 %enddef
169#else
170 %define DocStr(decl, docstr, details)
171 %feature("docstring") decl docstr;
172 %enddef
173#endif
174
dd9f7fea
RD
175
176// Set the autodoc string for a full or partial declaration
b2dc1044
RD
177%define DocA(decl, astr)
178 %feature("autodoc") decl astr;
179%enddef
dd9f7fea 180
dd9f7fea 181
d07d2bc9
RD
182// Set both the autodoc and docstring for a full or partial declaration
183#ifdef _DO_FULL_DOCS
184 %define DocAStr(decl, astr, docstr, details)
185 %feature("autodoc") decl astr;
186 %feature("docstring") decl docstr details
187 %enddef
188#else
189 %define DocAStr(decl, astr, docstr, details)
190 %feature("autodoc") decl astr;
191 %feature("docstring") decl docstr
192 %enddef
193#endif
dd9f7fea 194
d07d2bc9 195
dd9f7fea
RD
196
197
198// Set the docstring for a decl and then define the decl too. Must use the
199// full declaration of the item.
d07d2bc9
RD
200#ifdef _DO_FULL_DOCS
201 %define DocDeclStr(type, decl, docstr, details)
202 %feature("docstring") decl docstr details;
203 type decl
204 %enddef
205#else
206 %define DocDeclStr(type, decl, docstr, details)
207 %feature("docstring") decl docstr;
208 type decl
209 %enddef
210#endif
dd9f7fea 211
d07d2bc9
RD
212
213
dd9f7fea 214// As above, but also give the decl a new %name
d07d2bc9
RD
215#ifdef _DO_FULL_DOCS
216 %define DocDeclStrName(type, decl, docstr, details, newname)
217 %feature("docstring") decl docstr details;
1b8c7ba6
RD
218 %rename(newname) decl;
219 type decl
d07d2bc9
RD
220 %enddef
221#else
222 %define DocDeclStrName(type, decl, docstr, details, newname)
223 %feature("docstring") decl docstr;
1b8c7ba6
RD
224 %rename(newname) decl;
225 type decl
d07d2bc9
RD
226 %enddef
227#endif
228
dd9f7fea
RD
229
230// Set the autodoc string for a decl and then define the decl too. Must use the
231// full declaration of the item.
232%define DocDeclA(type, decl, astr)
233 %feature("autodoc") decl astr;
234 type decl
235%enddef
236
237// As above, but also give the decl a new %name
238%define DocDeclAName(type, decl, astr, newname)
239 %feature("autodoc") decl astr;
1b8c7ba6
RD
240 %rename(newname) decl;
241 type decl
dd9f7fea
RD
242%enddef
243
244
245
246// Set the autodoc and the docstring for a decl and then define the decl too.
247// Must use the full declaration of the item.
d07d2bc9 248#ifdef _DO_FULL_DOCS
a6ef7362 249 %define DocDeclAStr(type, decl, astr, docstr, details)
d07d2bc9
RD
250 %feature("autodoc") decl astr;
251 %feature("docstring") decl docstr details;
252 type decl
253 %enddef
254#else
a6ef7362 255 %define DocDeclAStr(type, decl, astr, docstr, details)
d07d2bc9
RD
256 %feature("autodoc") decl astr;
257 %feature("docstring") decl docstr;
258 type decl
259 %enddef
260#endif
dd9f7fea 261
d07d2bc9 262
dd9f7fea 263// As above, but also give the decl a new %name
d07d2bc9
RD
264#ifdef _DO_FULL_DOCS
265 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
266 %feature("autodoc") decl astr;
267 %feature("docstring") decl docstr details;
1b8c7ba6
RD
268 %rename(newname) decl;
269 type decl
d07d2bc9
RD
270 %enddef
271#else
272 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
273 %feature("autodoc") decl astr;
274 %feature("docstring") decl docstr;
1b8c7ba6
RD
275 %rename(newname) decl;
276 type decl
d07d2bc9
RD
277 %enddef
278#endif
dd9f7fea
RD
279
280
281
282// Set the docstring for a constructor decl and then define the decl too.
283// Must use the full declaration of the item.
d07d2bc9
RD
284#ifdef _DO_FULL_DOCS
285 %define DocCtorStr(decl, docstr, details)
286 %feature("docstring") decl docstr details;
287 decl
288 %enddef
289#else
290 %define DocCtorStr(decl, docstr, details)
291 %feature("docstring") decl docstr;
292 decl
293 %enddef
294#endif
dd9f7fea 295
d07d2bc9 296
dd9f7fea 297// As above, but also give the decl a new %name
d07d2bc9
RD
298#ifdef _DO_FULL_DOCS
299 %define DocCtorStrName(decl, docstr, details, newname)
300 %feature("docstring") decl docstr details;
1b8c7ba6
RD
301 %rename(newname) decl;
302 decl
d07d2bc9
RD
303 %enddef
304#else
305 %define DocCtorStrName(decl, docstr, details, newname)
306 %feature("docstring") decl docstr;
1b8c7ba6
RD
307 %rename(newname) decl;
308 decl
d07d2bc9
RD
309 %enddef
310#endif
dd9f7fea 311
d07d2bc9
RD
312
313// Set the autodoc string for a constructor decl and then define the decl too.
314// Must use the full declaration of the item.
dd9f7fea
RD
315%define DocCtorA(decl, astr)
316 %feature("autodoc") decl astr;
317 decl
318%enddef
319
320// As above, but also give the decl a new %name
d07d2bc9 321%define DocCtorAName(decl, astr, newname)
dd9f7fea 322 %feature("autodoc") decl astr;
1b8c7ba6
RD
323 %rename(newname) decl;
324 decl
dd9f7fea
RD
325%enddef
326
327
328
d07d2bc9
RD
329// Set the autodoc and the docstring for a constructor decl and then define
330// the decl too. Must use the full declaration of the item.
331#ifdef _DO_FULL_DOCS
332 %define DocCtorAStr(decl, astr, docstr, details)
333 %feature("autodoc") decl astr;
334 %feature("docstring") decl docstr details;
335 decl
336 %enddef
337#else
338 %define DocCtorAStr(decl, astr, docstr, details)
339 %feature("autodoc") decl astr;
340 %feature("docstring") decl docstr;
341 decl
342 %enddef
343#endif
dd9f7fea 344
dd9f7fea 345
d07d2bc9
RD
346
347// As above, but also give the decl a new %name
348#ifdef _DO_FULL_DOCS
349 %define DocCtorAStrName(decl, astr, docstr, details, newname)
350 %feature("autodoc") decl astr;
351 %feature("docstring") decl docstr details;
1b8c7ba6
RD
352 %rename(newname) decl;
353 decl
d07d2bc9
RD
354 %enddef
355#else
356 %define DocCtorAStrName(decl, astr, docstr, details, newname)
357 %feature("autodoc") decl astr;
358 %feature("docstring") decl docstr;
1b8c7ba6
RD
359 %rename(newname) decl;
360 decl
d07d2bc9
RD
361 %enddef
362#endif
1e0c8722 363
d07d2bc9 364
dd9f7fea 365
d14a1e28
RD
366%define %newgroup
367%pythoncode {
368%#---------------------------------------------------------------------------
dd9f7fea 369}
d14a1e28 370%enddef
7bf85405 371
1b8c7ba6
RD
372
373// A set of macros to make using %rename easier, since %name has been
374// deprecated...
375%define %Rename(newname, type, decl)
376 %rename(newname) decl;
377 type decl
378%enddef
379
380%define %RenameCtor(newname, decl)
381 %rename(newname) decl;
382 decl
383%enddef
384
d8194e5d
RD
385#ifdef _DO_FULL_DOCS
386 %define %RenameDocCtor(newname, docstr, details, decl)
387 %feature("docstring") decl docstr details;
388 %rename(newname) decl;
389 decl
390 %enddef
391#else
392 %define %RenameDocCtor(newname, docstr, details, decl)
393 %feature("docstring") decl docstr;
394 %rename(newname) decl;
395 decl
396 %enddef
397#endif
1b8c7ba6 398
a7a01418
RD
399
400//---------------------------------------------------------------------------
401// Generates a base_On* method that just wraps a call to the On*, and mark it
402// deprecated. We need this because there is no longer any need for a
403// base_On* method to be able to call the C++ base class method, since our
404// virtualization code can now sense when an attempt is being made to call
405// the base class version from the derived class override.
406
407%define %MAKE_BASE_FUNC(Class, Method)
408 %pythoncode {
409 def base_##Method(*args, **kw):
410 return Class.Method(*args, **kw)
411 base_##Method = wx._deprecated(base_##Method,
412 "Please use Class.Method instead.")
413 }
414%enddef
415
64e8a1f0
RD
416//---------------------------------------------------------------------------
417// Forward declarations and %renames for some classes, so the autodoc strings
418// will be able to use the right types even when the real class declaration is
3ea6e0ec 419// not in the module being processed or seen by %import's.
64e8a1f0
RD
420
421#ifdef BUILDING_RENAMERS
422 #define FORWARD_DECLARE(wxName, Name)
423#else
424 %define FORWARD_DECLARE(wxName, Name)
425 %rename(Name) wxName;
426 class wxName;
427 %enddef
428#endif
429
b2dc1044
RD
430FORWARD_DECLARE(wxString, String);
431FORWARD_DECLARE(wxBitmap, Bitmap);
432FORWARD_DECLARE(wxDateTime, DateTime);
433FORWARD_DECLARE(wxInputStream, InputStream);
434FORWARD_DECLARE(wxDC, DC);
435FORWARD_DECLARE(wxCursor, Cursor);
436FORWARD_DECLARE(wxRegion, Region);
437FORWARD_DECLARE(wxColour, Colour);
438FORWARD_DECLARE(wxFont, Font);
439FORWARD_DECLARE(wxCaret, Caret);
440FORWARD_DECLARE(wxToolTip, ToolTip);
d7466b1d 441FORWARD_DECLARE(wxPyDropTarget, DropTarget);
b2dc1044
RD
442FORWARD_DECLARE(wxImageList, ImageList);
443FORWARD_DECLARE(wxMemoryDC, MemoryDC);
444FORWARD_DECLARE(wxHtmlTagHandler, HtmlTagHandler);
445FORWARD_DECLARE(wxConfigBase, ConfigBase);
446FORWARD_DECLARE(wxIcon, Icon);
3ea6e0ec 447FORWARD_DECLARE(wxStaticBox, StaticBox);
b2dc1044 448
64e8a1f0 449
7bf85405
RD
450//---------------------------------------------------------------------------
451
aeee37c3
RD
452%{
453#if !WXWIN_COMPATIBILITY_2_4
454 #define wxHIDE_READONLY 0
455#endif
456%}
457
458
7bf85405
RD
459// General numeric #define's and etc. Making them all enums makes SWIG use the
460// real macro when making the Python Int
461
462enum {
d14a1e28
RD
463// wxMAJOR_VERSION,
464// wxMINOR_VERSION,
465// wxRELEASE_NUMBER,
7bf85405 466
08127323 467 wxNOT_FOUND,
7bf85405
RD
468
469 wxVSCROLL,
470 wxHSCROLL,
471 wxCAPTION,
472 wxDOUBLE_BORDER,
473 wxSUNKEN_BORDER,
474 wxRAISED_BORDER,
475 wxBORDER,
476 wxSIMPLE_BORDER,
477 wxSTATIC_BORDER,
478 wxTRANSPARENT_WINDOW,
479 wxNO_BORDER,
c96bf2a7 480 wxDEFAULT_CONTROL_BORDER,
5f57b149
RD
481 wxDEFAULT_STATUSBAR_STYLE,
482
7bf85405 483 wxTAB_TRAVERSAL,
1afc06c2 484 wxWANTS_CHARS,
0122b7e3 485 wxPOPUP_WINDOW,
7bf85405 486 wxCENTER_FRAME,
1afc06c2
RD
487 wxCENTRE_ON_SCREEN,
488 wxCENTER_ON_SCREEN,
489
08127323 490 wxCLIP_CHILDREN,
edf2f43e 491 wxCLIP_SIBLINGS,
b8b8dda7 492
6cffbf02
RD
493 wxALWAYS_SHOW_SB,
494
7bf85405
RD
495 wxRETAINED,
496 wxBACKINGSTORE,
b96c7a38 497
7bf85405
RD
498 wxCOLOURED,
499 wxFIXED_LENGTH,
1b62f00d 500
7bf85405
RD
501 wxLB_NEEDED_SB,
502 wxLB_ALWAYS_SB,
503 wxLB_SORT,
504 wxLB_SINGLE,
505 wxLB_MULTIPLE,
506 wxLB_EXTENDED,
507 wxLB_OWNERDRAW,
508 wxLB_HSCROLL,
509 wxPROCESS_ENTER,
510 wxPASSWORD,
b1e930a5 511
7bf85405
RD
512 wxCB_SIMPLE,
513 wxCB_DROPDOWN,
514 wxCB_SORT,
515 wxCB_READONLY,
516 wxRA_HORIZONTAL,
517 wxRA_VERTICAL,
ed175610
RD
518 wxRA_SPECIFY_ROWS,
519 wxRA_SPECIFY_COLS,
8815349a 520 wxRA_USE_CHECKBOX,
7bf85405 521 wxRB_GROUP,
1e4a197e 522 wxRB_SINGLE,
7bf85405
RD
523 wxSB_HORIZONTAL,
524 wxSB_VERTICAL,
8815349a 525 wxRB_USE_CHECKBOX,
cf694132 526 wxST_SIZEGRIP,
2abc0a0f 527 wxST_NO_AUTORESIZE,
2d6a2f1d
RD
528 wxST_DOTS_MIDDLE,
529 wxST_DOTS_END,
530
7bf85405
RD
531 wxFLOOD_SURFACE,
532 wxFLOOD_BORDER,
533 wxODDEVEN_RULE,
534 wxWINDING_RULE,
535 wxTOOL_TOP,
536 wxTOOL_BOTTOM,
537 wxTOOL_LEFT,
538 wxTOOL_RIGHT,
539 wxOK,
540 wxYES_NO,
541 wxCANCEL,
542 wxYES,
543 wxNO,
1afc06c2
RD
544 wxNO_DEFAULT,
545 wxYES_DEFAULT,
7bf85405
RD
546 wxICON_EXCLAMATION,
547 wxICON_HAND,
548 wxICON_QUESTION,
549 wxICON_INFORMATION,
550 wxICON_STOP,
551 wxICON_ASTERISK,
552 wxICON_MASK,
1afc06c2
RD
553 wxICON_WARNING,
554 wxICON_ERROR,
555
556 wxFORWARD,
557 wxBACKWARD,
558 wxRESET,
559 wxHELP,
560 wxMORE,
561 wxSETUP,
562
f3d9dc1d 563
7bf85405
RD
564 wxSIZE_AUTO_WIDTH,
565 wxSIZE_AUTO_HEIGHT,
566 wxSIZE_AUTO,
567 wxSIZE_USE_EXISTING,
568 wxSIZE_ALLOW_MINUS_ONE,
02b800ce 569 wxSIZE_FORCE,
7bf85405
RD
570 wxPORTRAIT,
571 wxLANDSCAPE,
bb0054cd
RD
572 wxPRINT_QUALITY_HIGH,
573 wxPRINT_QUALITY_MEDIUM,
574 wxPRINT_QUALITY_LOW,
575 wxPRINT_QUALITY_DRAFT,
26e335b8 576
3eb221f6
RD
577 wxID_ANY,
578 wxID_SEPARATOR,
02b800ce 579 wxID_NONE,
3eb221f6 580
d14a1e28 581 wxID_LOWEST,
7bf85405
RD
582 wxID_OPEN,
583 wxID_CLOSE,
584 wxID_NEW,
585 wxID_SAVE,
586 wxID_SAVEAS,
587 wxID_REVERT,
588 wxID_EXIT,
589 wxID_UNDO,
590 wxID_REDO,
591 wxID_HELP,
592 wxID_PRINT,
593 wxID_PRINT_SETUP,
594 wxID_PREVIEW,
595 wxID_ABOUT,
596 wxID_HELP_CONTENTS,
597 wxID_HELP_COMMANDS,
598 wxID_HELP_PROCEDURES,
599 wxID_HELP_CONTEXT,
b5a5d647 600 wxID_CLOSE_ALL,
1a10a058 601 wxID_PREFERENCES,
26e335b8 602
7bf85405
RD
603 wxID_CUT,
604 wxID_COPY,
605 wxID_PASTE,
606 wxID_CLEAR,
607 wxID_FIND,
d56cebe7
RD
608 wxID_DUPLICATE,
609 wxID_SELECTALL,
26e335b8 610
3ef86e32
RD
611 wxID_DELETE,
612 wxID_REPLACE,
613 wxID_REPLACE_ALL,
614 wxID_PROPERTIES,
615
616 wxID_VIEW_DETAILS,
617 wxID_VIEW_LARGEICONS,
618 wxID_VIEW_SMALLICONS,
619 wxID_VIEW_LIST,
620 wxID_VIEW_SORTDATE,
621 wxID_VIEW_SORTNAME,
622 wxID_VIEW_SORTSIZE,
623 wxID_VIEW_SORTTYPE,
624
7bf85405
RD
625 wxID_FILE1,
626 wxID_FILE2,
627 wxID_FILE3,
628 wxID_FILE4,
629 wxID_FILE5,
630 wxID_FILE6,
631 wxID_FILE7,
632 wxID_FILE8,
633 wxID_FILE9,
26e335b8 634
7bf85405
RD
635 wxID_OK,
636 wxID_CANCEL,
637 wxID_APPLY,
638 wxID_YES,
639 wxID_NO,
cf694132 640 wxID_STATIC,
f3d9dc1d
RD
641 wxID_FORWARD,
642 wxID_BACKWARD,
26e335b8 643 wxID_DEFAULT,
f3d9dc1d 644 wxID_MORE,
26e335b8
RD
645 wxID_SETUP,
646 wxID_RESET,
647 wxID_CONTEXT_HELP,
648 wxID_YESTOALL,
649 wxID_NOTOALL,
650 wxID_ABORT,
651 wxID_RETRY,
652 wxID_IGNORE,
f3d9dc1d 653
1a1ed526
RD
654 wxID_ADD,
655 wxID_REMOVE,
656
657 wxID_UP,
658 wxID_DOWN,
659 wxID_HOME,
660 wxID_REFRESH,
661 wxID_STOP,
662 wxID_INDEX,
663
664 wxID_BOLD,
665 wxID_ITALIC,
666 wxID_JUSTIFY_CENTER,
667 wxID_JUSTIFY_FILL,
668 wxID_JUSTIFY_RIGHT,
669 wxID_JUSTIFY_LEFT,
670 wxID_UNDERLINE,
671 wxID_INDENT,
672 wxID_UNINDENT,
673 wxID_ZOOM_100,
674 wxID_ZOOM_FIT,
675 wxID_ZOOM_IN,
676 wxID_ZOOM_OUT,
677 wxID_UNDELETE,
678 wxID_REVERT_TO_SAVED,
679
d14a1e28 680 wxID_HIGHEST,
dd9f7fea 681
7bf85405
RD
682 wxOPEN,
683 wxSAVE,
684 wxHIDE_READONLY,
685 wxOVERWRITE_PROMPT,
2abc0a0f 686 wxFILE_MUST_EXIST,
f6bcfd97 687 wxMULTIPLE,
1b62f00d 688 wxCHANGE_DIR,
7bf85405
RD
689
690 wxACCEL_ALT,
691 wxACCEL_CTRL,
692 wxACCEL_SHIFT,
f6bcfd97 693 wxACCEL_NORMAL,
bb0054cd
RD
694
695 wxPD_AUTO_HIDE,
696 wxPD_APP_MODAL,
697 wxPD_CAN_ABORT,
a08cbc01
RD
698 wxPD_ELAPSED_TIME,
699 wxPD_ESTIMATED_TIME,
700 wxPD_REMAINING_TIME,
191dea6d
RD
701 wxPD_SMOOTH,
702 wxPD_CAN_SKIP,
bb0054cd 703
7cdaed0b 704 wxDD_NEW_DIR_BUTTON,
daa3eac9 705 wxDD_DEFAULT_STYLE,
0cfaa1da
RD
706 wxDD_CHANGE_DIR,
707
8bf5d46e 708 wxMENU_TEAROFF,
1afc06c2 709 wxMB_DOCKABLE,
8bf5d46e 710 wxNO_FULL_REPAINT_ON_RESIZE,
6a8b9da4
RD
711 wxFULL_REPAINT_ON_RESIZE,
712
1afc06c2
RD
713 wxLI_HORIZONTAL,
714 wxLI_VERTICAL,
715
d1679124 716 wxWS_EX_VALIDATE_RECURSIVELY,
0122b7e3 717 wxWS_EX_BLOCK_EVENTS,
78e8819c 718 wxWS_EX_TRANSIENT,
ecc08ead 719
3ef86e32
RD
720 wxWS_EX_THEMED_BACKGROUND,
721 wxWS_EX_PROCESS_IDLE,
722 wxWS_EX_PROCESS_UI_UPDATES,
723
724
ecc08ead
RD
725 // Mapping modes (as per Windows)
726 wxMM_TEXT,
727 wxMM_LOMETRIC,
728 wxMM_HIMETRIC,
729 wxMM_LOENGLISH,
730 wxMM_HIENGLISH,
731 wxMM_TWIPS,
732 wxMM_ISOTROPIC,
733 wxMM_ANISOTROPIC,
734 wxMM_POINTS,
735 wxMM_METRIC,
736
3eb221f6 737
1e4a197e
RD
738 // It looks like wxTabCtrl may rise from the dead. Uncomment these if
739 // it gets an implementation for all platforms...
740// wxTC_RIGHTJUSTIFY,
741// wxTC_FIXEDWIDTH,
742// wxTC_TOP,
743// wxTC_LEFT,
744// wxTC_RIGHT,
745// wxTC_BOTTOM,
746// wxTC_MULTILINE,
747// wxTC_OWNERDRAW,
748
7bf85405
RD
749};
750
751
d14a1e28
RD
752
753enum wxGeometryCentre
754{
755 wxCENTRE = 0x0001,
756 wxCENTER = wxCENTRE
757};
758
759
760enum wxOrientation
761{
762 wxHORIZONTAL,
763 wxVERTICAL,
764 wxBOTH
765};
766
767enum wxDirection
768{
769 wxLEFT,
770 wxRIGHT,
771 wxUP,
772 wxDOWN,
773
774 wxTOP,
775 wxBOTTOM,
776
777 wxNORTH,
778 wxSOUTH,
779 wxWEST,
780 wxEAST,
781
782 wxALL
783};
784
785enum wxAlignment
786{
787 wxALIGN_NOT,
788 wxALIGN_CENTER_HORIZONTAL,
789 wxALIGN_CENTRE_HORIZONTAL,
790 wxALIGN_LEFT,
791 wxALIGN_TOP,
792 wxALIGN_RIGHT,
793 wxALIGN_BOTTOM,
794 wxALIGN_CENTER_VERTICAL,
795 wxALIGN_CENTRE_VERTICAL,
796
797 wxALIGN_CENTER,
798 wxALIGN_CENTRE,
799
800 wxALIGN_MASK,
801};
802
803enum wxStretch
804{
805 wxSTRETCH_NOT,
806 wxSHRINK,
807 wxGROW,
808 wxEXPAND,
809 wxSHAPED,
f52e0cf4 810 wxFIXED_MINSIZE,
d14a1e28 811 wxTILE,
33e10b88 812 wxADJUST_MINSIZE,
d14a1e28
RD
813};
814
815
ebf4302c
RD
816enum wxBorder
817{
818 wxBORDER_DEFAULT,
819 wxBORDER_NONE,
820 wxBORDER_STATIC,
821 wxBORDER_SIMPLE,
822 wxBORDER_RAISED,
823 wxBORDER_SUNKEN,
824 wxBORDER_DOUBLE,
825 wxBORDER_MASK,
826};
827
828
1a1ed526
RD
829enum wxBackgroundStyle
830{
831 wxBG_STYLE_SYSTEM,
832 wxBG_STYLE_COLOUR,
833 wxBG_STYLE_CUSTOM
834};
835
836
7bf85405
RD
837enum {
838 wxDEFAULT ,
839 wxDECORATIVE,
840 wxROMAN,
841 wxSCRIPT,
842 wxSWISS,
843 wxMODERN,
844 wxTELETYPE,
845 wxVARIABLE,
846 wxFIXED,
847 wxNORMAL,
848 wxLIGHT,
849 wxBOLD,
850 wxITALIC,
851 wxSLANT,
852 wxSOLID,
853 wxDOT,
854 wxLONG_DASH,
855 wxSHORT_DASH,
856 wxDOT_DASH,
857 wxUSER_DASH,
858 wxTRANSPARENT,
859 wxSTIPPLE,
8224a808
RD
860 wxSTIPPLE_MASK,
861 wxSTIPPLE_MASK_OPAQUE,
7bf85405
RD
862 wxBDIAGONAL_HATCH,
863 wxCROSSDIAG_HATCH,
864 wxFDIAGONAL_HATCH,
865 wxCROSS_HATCH,
866 wxHORIZONTAL_HATCH,
867 wxVERTICAL_HATCH,
868 wxJOIN_BEVEL,
869 wxJOIN_MITER,
870 wxJOIN_ROUND,
871 wxCAP_ROUND,
872 wxCAP_PROJECTING,
873 wxCAP_BUTT
874};
875
876typedef enum {
877 wxCLEAR, // 0
878 wxXOR, // src XOR dst
879 wxINVERT, // NOT dst
880 wxOR_REVERSE, // src OR (NOT dst)
881 wxAND_REVERSE,// src AND (NOT dst)
882 wxCOPY, // src
883 wxAND, // src AND dst
884 wxAND_INVERT, // (NOT src) AND dst
885 wxNO_OP, // dst
886 wxNOR, // (NOT src) AND (NOT dst)
887 wxEQUIV, // (NOT src) XOR dst
888 wxSRC_INVERT, // (NOT src)
889 wxOR_INVERT, // (NOT src) OR dst
890 wxNAND, // (NOT src) OR (NOT dst)
891 wxOR, // src OR dst
892 wxSET, // 1
26b9cf27
RD
893// wxSRC_OR, // source _bitmap_ OR destination
894// wxSRC_AND // source _bitmap_ AND destination
7bf85405
RD
895} form_ops_t;
896
65fe3842 897enum wxKeyCode {
08dcfb92
RD
898 WXK_BACK = 8,
899 WXK_TAB = 9,
900 WXK_RETURN = 13,
901 WXK_ESCAPE = 27,
902 WXK_SPACE = 32,
903 WXK_DELETE = 127,
904
905 WXK_START = 300,
906 WXK_LBUTTON,
907 WXK_RBUTTON,
908 WXK_CANCEL,
909 WXK_MBUTTON,
910 WXK_CLEAR,
911 WXK_SHIFT,
912 WXK_ALT,
913 WXK_CONTROL,
914 WXK_MENU,
915 WXK_PAUSE,
916 WXK_CAPITAL,
917 WXK_PRIOR, /* Page up */
918 WXK_NEXT, /* Page down */
919 WXK_END,
920 WXK_HOME,
921 WXK_LEFT,
922 WXK_UP,
923 WXK_RIGHT,
924 WXK_DOWN,
925 WXK_SELECT,
926 WXK_PRINT,
927 WXK_EXECUTE,
928 WXK_SNAPSHOT,
929 WXK_INSERT,
930 WXK_HELP,
931 WXK_NUMPAD0,
932 WXK_NUMPAD1,
933 WXK_NUMPAD2,
934 WXK_NUMPAD3,
935 WXK_NUMPAD4,
936 WXK_NUMPAD5,
937 WXK_NUMPAD6,
938 WXK_NUMPAD7,
939 WXK_NUMPAD8,
940 WXK_NUMPAD9,
941 WXK_MULTIPLY,
942 WXK_ADD,
943 WXK_SEPARATOR,
944 WXK_SUBTRACT,
945 WXK_DECIMAL,
946 WXK_DIVIDE,
947 WXK_F1,
948 WXK_F2,
949 WXK_F3,
950 WXK_F4,
951 WXK_F5,
952 WXK_F6,
953 WXK_F7,
954 WXK_F8,
955 WXK_F9,
956 WXK_F10,
957 WXK_F11,
958 WXK_F12,
959 WXK_F13,
960 WXK_F14,
961 WXK_F15,
962 WXK_F16,
963 WXK_F17,
964 WXK_F18,
965 WXK_F19,
966 WXK_F20,
967 WXK_F21,
968 WXK_F22,
969 WXK_F23,
970 WXK_F24,
971 WXK_NUMLOCK,
972 WXK_SCROLL,
973 WXK_PAGEUP,
974 WXK_PAGEDOWN,
975
976 WXK_NUMPAD_SPACE,
977 WXK_NUMPAD_TAB,
978 WXK_NUMPAD_ENTER,
979 WXK_NUMPAD_F1,
980 WXK_NUMPAD_F2,
981 WXK_NUMPAD_F3,
982 WXK_NUMPAD_F4,
983 WXK_NUMPAD_HOME,
984 WXK_NUMPAD_LEFT,
985 WXK_NUMPAD_UP,
986 WXK_NUMPAD_RIGHT,
987 WXK_NUMPAD_DOWN,
988 WXK_NUMPAD_PRIOR,
989 WXK_NUMPAD_PAGEUP,
990 WXK_NUMPAD_NEXT,
991 WXK_NUMPAD_PAGEDOWN,
992 WXK_NUMPAD_END,
993 WXK_NUMPAD_BEGIN,
994 WXK_NUMPAD_INSERT,
995 WXK_NUMPAD_DELETE,
996 WXK_NUMPAD_EQUAL,
997 WXK_NUMPAD_MULTIPLY,
998 WXK_NUMPAD_ADD,
999 WXK_NUMPAD_SEPARATOR,
1000 WXK_NUMPAD_SUBTRACT,
1001 WXK_NUMPAD_DECIMAL,
1002 WXK_NUMPAD_DIVIDE,
1003
1004 WXK_WINDOWS_LEFT,
1005 WXK_WINDOWS_RIGHT,
1006 WXK_WINDOWS_MENU,
1007
1008 WXK_COMMAND,
1009
1010 // Hardware-specific buttons
1011 WXK_SPECIAL1 = 193,
1012 WXK_SPECIAL2,
1013 WXK_SPECIAL3,
1014 WXK_SPECIAL4,
1015 WXK_SPECIAL5,
1016 WXK_SPECIAL6,
1017 WXK_SPECIAL7,
1018 WXK_SPECIAL8,
1019 WXK_SPECIAL9,
1020 WXK_SPECIAL10,
1021 WXK_SPECIAL11,
1022 WXK_SPECIAL12,
1023 WXK_SPECIAL13,
1024 WXK_SPECIAL14,
1025 WXK_SPECIAL15,
1026 WXK_SPECIAL16,
1027 WXK_SPECIAL17,
1028 WXK_SPECIAL18,
1029 WXK_SPECIAL19,
1030 WXK_SPECIAL20
7bf85405
RD
1031};
1032
0a651eb8 1033
cf694132
RD
1034
1035typedef enum {
1036 wxPAPER_NONE, // Use specific dimensions
1037 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
1038 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
1039 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
1040 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
1041 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
1042 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
1043 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
1044 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
1045 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
1046 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
1047 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
1048 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
1049 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
1050 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
1051 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
1052 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
1053 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
1054 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
1055 wxPAPER_10X14, // 10-by-14-inch sheet
1056 wxPAPER_11X17, // 11-by-17-inch sheet
1057 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
1058 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
1059 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
1060 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
1061 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
1062 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
1063 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
1064 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
1065 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
1066 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
1067 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
1068 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
1069 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
1070 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
1071 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
1072 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
1073 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
1074 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
1075 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
1076 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
1077 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
1078
1079 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
1080 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
1081 wxPAPER_9X11, // 9 x 11 in
1082 wxPAPER_10X11, // 10 x 11 in
1083 wxPAPER_15X11, // 15 x 11 in
1084 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
1085 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
1086 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
1087 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
1088 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
1089 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
1090 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
1091 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
1092 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
1093 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
1094 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
1095 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
1096 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
1097 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
1098 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
1099 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
1100 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
1101 wxPAPER_A2, // A2 420 x 594 mm
1102 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
6c75a4cf
RD
1103 wxPAPER_A3_EXTRA_TRANSVERSE, // A3 Extra Transverse 322 x 445 mm
1104
1105 wxPAPER_DBL_JAPANESE_POSTCARD,/* Japanese Double Postcard 200 x 148 mm */
1106 wxPAPER_A6, /* A6 105 x 148 mm */
1107 wxPAPER_JENV_KAKU2, /* Japanese Envelope Kaku #2 */
1108 wxPAPER_JENV_KAKU3, /* Japanese Envelope Kaku #3 */
1109 wxPAPER_JENV_CHOU3, /* Japanese Envelope Chou #3 */
1110 wxPAPER_JENV_CHOU4, /* Japanese Envelope Chou #4 */
1111 wxPAPER_LETTER_ROTATED, /* Letter Rotated 11 x 8 1/2 in */
1112 wxPAPER_A3_ROTATED, /* A3 Rotated 420 x 297 mm */
1113 wxPAPER_A4_ROTATED, /* A4 Rotated 297 x 210 mm */
1114 wxPAPER_A5_ROTATED, /* A5 Rotated 210 x 148 mm */
1115 wxPAPER_B4_JIS_ROTATED, /* B4 (JIS) Rotated 364 x 257 mm */
1116 wxPAPER_B5_JIS_ROTATED, /* B5 (JIS) Rotated 257 x 182 mm */
1117 wxPAPER_JAPANESE_POSTCARD_ROTATED,/* Japanese Postcard Rotated 148 x 100 mm */
1118 wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED,/* Double Japanese Postcard Rotated 148 x 200 mm */
1119 wxPAPER_A6_ROTATED, /* A6 Rotated 148 x 105 mm */
1120 wxPAPER_JENV_KAKU2_ROTATED, /* Japanese Envelope Kaku #2 Rotated */
1121 wxPAPER_JENV_KAKU3_ROTATED, /* Japanese Envelope Kaku #3 Rotated */
1122 wxPAPER_JENV_CHOU3_ROTATED, /* Japanese Envelope Chou #3 Rotated */
1123 wxPAPER_JENV_CHOU4_ROTATED, /* Japanese Envelope Chou #4 Rotated */
1124 wxPAPER_B6_JIS, /* B6 (JIS) 128 x 182 mm */
1125 wxPAPER_B6_JIS_ROTATED, /* B6 (JIS) Rotated 182 x 128 mm */
1126 wxPAPER_12X11, /* 12 x 11 in */
1127 wxPAPER_JENV_YOU4, /* Japanese Envelope You #4 */
1128 wxPAPER_JENV_YOU4_ROTATED, /* Japanese Envelope You #4 Rotated */
1129 wxPAPER_P16K, /* PRC 16K 146 x 215 mm */
1130 wxPAPER_P32K, /* PRC 32K 97 x 151 mm */
1131 wxPAPER_P32KBIG, /* PRC 32K(Big) 97 x 151 mm */
1132 wxPAPER_PENV_1, /* PRC Envelope #1 102 x 165 mm */
1133 wxPAPER_PENV_2, /* PRC Envelope #2 102 x 176 mm */
1134 wxPAPER_PENV_3, /* PRC Envelope #3 125 x 176 mm */
1135 wxPAPER_PENV_4, /* PRC Envelope #4 110 x 208 mm */
1136 wxPAPER_PENV_5, /* PRC Envelope #5 110 x 220 mm */
1137 wxPAPER_PENV_6, /* PRC Envelope #6 120 x 230 mm */
1138 wxPAPER_PENV_7, /* PRC Envelope #7 160 x 230 mm */
1139 wxPAPER_PENV_8, /* PRC Envelope #8 120 x 309 mm */
1140 wxPAPER_PENV_9, /* PRC Envelope #9 229 x 324 mm */
1141 wxPAPER_PENV_10, /* PRC Envelope #10 324 x 458 mm */
1142 wxPAPER_P16K_ROTATED, /* PRC 16K Rotated */
1143 wxPAPER_P32K_ROTATED, /* PRC 32K Rotated */
1144 wxPAPER_P32KBIG_ROTATED, /* PRC 32K(Big) Rotated */
1145 wxPAPER_PENV_1_ROTATED, /* PRC Envelope #1 Rotated 165 x 102 mm */
1146 wxPAPER_PENV_2_ROTATED, /* PRC Envelope #2 Rotated 176 x 102 mm */
1147 wxPAPER_PENV_3_ROTATED, /* PRC Envelope #3 Rotated 176 x 125 mm */
1148 wxPAPER_PENV_4_ROTATED, /* PRC Envelope #4 Rotated 208 x 110 mm */
1149 wxPAPER_PENV_5_ROTATED, /* PRC Envelope #5 Rotated 220 x 110 mm */
1150 wxPAPER_PENV_6_ROTATED, /* PRC Envelope #6 Rotated 230 x 120 mm */
1151 wxPAPER_PENV_7_ROTATED, /* PRC Envelope #7 Rotated 230 x 160 mm */
1152 wxPAPER_PENV_8_ROTATED, /* PRC Envelope #8 Rotated 309 x 120 mm */
1153 wxPAPER_PENV_9_ROTATED, /* PRC Envelope #9 Rotated 324 x 229 mm */
1154 wxPAPER_PENV_10_ROTATED /* PRC Envelope #10 Rotated 458 x 324 m */
1155
cf694132
RD
1156} wxPaperSize ;
1157
bb0054cd
RD
1158typedef enum {
1159 wxDUPLEX_SIMPLEX, // Non-duplex
1160 wxDUPLEX_HORIZONTAL,
1161 wxDUPLEX_VERTICAL
1162} wxDuplexMode;
1163
cf694132
RD
1164
1165
e9159fe8
RD
1166// menu and toolbar item kinds
1167enum wxItemKind
1168{
addd64ee 1169 wxITEM_SEPARATOR,
546bfbea
VS
1170 wxITEM_NORMAL,
1171 wxITEM_CHECK,
1172 wxITEM_RADIO,
1173 wxITEM_MAX
e9159fe8
RD
1174};
1175
64e8a1f0 1176
23bed520
RD
1177enum wxHitTest
1178{
1179 wxHT_NOWHERE,
1180
1181 // scrollbar
1182 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
1183 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
1184 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
1185 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
1186 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
1187 wxHT_SCROLLBAR_THUMB, // on the thumb
1188 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
1189 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
1190 wxHT_SCROLLBAR_LAST,
1191
1192 // window
1193 wxHT_WINDOW_OUTSIDE, // not in this window at all
1194 wxHT_WINDOW_INSIDE, // in the client area
1195 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
1196 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
1197 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
1198
1199 wxHT_MAX
1200};
1201
1202
3ef86e32 1203
a780a8dc 1204enum wxKeyModifier
3ef86e32 1205{
a780a8dc
RD
1206 wxMOD_NONE,
1207 wxMOD_ALT,
1208 wxMOD_CONTROL,
1209 wxMOD_ALTGR,
1210 wxMOD_SHIFT,
1211 wxMOD_META,
1212 wxMOD_WIN,
1213 wxMOD_CMD,
1214 wxMOD_ALL
3ef86e32
RD
1215};
1216
1217
1218enum wxUpdateUI
1219{
1220 wxUPDATE_UI_NONE = 0x0000,
1221 wxUPDATE_UI_RECURSE = 0x0001,
1222 wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle
1223};
1224
1225
23bed520 1226
7bf85405
RD
1227//---------------------------------------------------------------------------
1228