1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Definitions and stuff
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
14 //---------------------------------------------------------------------------
16 // Globally turn on the autodoc feature
17 %feature("autodoc", "1"); // 0 == no param types, 1 == show param types
19 // Turn on kwargs by default
20 %feature("kwargs", "1");
22 // Don't generate separate wrappers for each default args combination
23 %feature("compactdefaultargs");
25 #if SWIG_VERSION < 0x010328
26 // Don't generate default ctors or dtors if the C++ doesn't have them
27 %feature("nodefault");
29 // This is the SWIG 1.3.28 way to do the above...
30 %feature("nodefaultctor");
31 %feature("nodefaultdtor");
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") "";
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
41 #pragma SWIG nowarn=314
43 //---------------------------------------------------------------------------
45 // Tell SWIG to wrap all the wrappers with our thread protection
46 %define %threadWrapperOn
48 PyThreadState* __tstate = wxPyBeginAllowThreads();
50 wxPyEndAllowThreads(__tstate);
51 if (PyErr_Occurred()) SWIG_fail;
55 // This one will turn off the generation of the thread wrapper code
56 %define %threadWrapperOff
60 // Turn it on by default
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)
67 if (!wxPyCheckForApp()) SWIG_fail;
68 PyThreadState* __tstate = wxPyBeginAllowThreads();
70 wxPyEndAllowThreads(__tstate);
71 if (PyErr_Occurred()) SWIG_fail;
76 // This macro can be used to disable the releasing of the GIL when calling the
81 if (PyErr_Occurred()) SWIG_fail;
85 //---------------------------------------------------------------------------
86 // some type definitions to simplify things for SWIG
88 typedef int wxEventType;
89 typedef unsigned int size_t;
90 typedef unsigned int time_t;
91 typedef unsigned char byte;
92 typedef unsigned long wxUIntPtr;
94 #define wxWindowID int
97 #define wxUint32 unsigned int
100 //----------------------------------------------------------------------
101 // Various SWIG macros and such
103 #define %pythonAppend %feature("pythonappend")
104 #define %pythonPrepend %feature("pythonprepend")
105 #define %noautodoc %feature("noautodoc")
107 #if SWIG_VERSION >= 0x010327
109 #define %kwargs %feature("kwargs", "1")
110 #define %nokwargs %feature("kwargs", "0")
112 #define %kwargs %feature("kwargs")
113 #define %nokwargs %feature("nokwargs")
116 #define %disownarg(typespec) %typemap(in) typespec = SWIGTYPE* DISOWN
117 #define %cleardisown(typespec) %typemap(in) typespec
119 #define %ref %feature("ref")
120 #define %unref %feature("unref")
124 #define %pythoncode %insert("python")
127 #define WXUNUSED(x) x
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); %}
135 %rename(strname) wxPy##strname;
136 const wxString wxPy##strname;
140 %define MAKE_CONST_WXSTRING2(strname, val)
141 %{ static const wxString wxPy##strname(val); %}
143 %rename(strname) wxPy##strname;
144 const wxString wxPy##strname;
148 %define MAKE_CONST_WXSTRING_NOSWIG(strname)
149 %{ static const wxString wxPy##strname(wx##strname); %}
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));";
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.
164 // Set the docsring for the given full or partial declaration
166 %define DocStr(decl, docstr, details)
167 %feature("docstring") decl docstr details;
170 %define DocStr(decl, docstr, details)
171 %feature("docstring") decl docstr;
176 // Set the autodoc string for a full or partial declaration
177 %define DocA(decl, astr)
178 %feature("autodoc") decl astr;
182 // Set both the autodoc and docstring for a full or partial declaration
184 %define DocAStr(decl, astr, docstr, details)
185 %feature("autodoc") decl astr;
186 %feature("docstring") decl docstr details
189 %define DocAStr(decl, astr, docstr, details)
190 %feature("autodoc") decl astr;
191 %feature("docstring") decl docstr
198 // Set the docstring for a decl and then define the decl too. Must use the
199 // full declaration of the item.
201 %define DocDeclStr(type, decl, docstr, details)
202 %feature("docstring") decl docstr details;
206 %define DocDeclStr(type, decl, docstr, details)
207 %feature("docstring") decl docstr;
214 // As above, but also give the decl a new %name
216 %define DocDeclStrName(type, decl, docstr, details, newname)
217 %feature("docstring") decl docstr details;
218 %rename(newname) decl;
222 %define DocDeclStrName(type, decl, docstr, details, newname)
223 %feature("docstring") decl docstr;
224 %rename(newname) decl;
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;
237 // As above, but also give the decl a new %name
238 %define DocDeclAName(type, decl, astr, newname)
239 %feature("autodoc") decl astr;
240 %rename(newname) decl;
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.
249 %define DocDeclAStr(type, decl, astr, docstr, details)
250 %feature("autodoc") decl astr;
251 %feature("docstring") decl docstr details;
255 %define DocDeclAStr(type, decl, astr, docstr, details)
256 %feature("autodoc") decl astr;
257 %feature("docstring") decl docstr;
263 // As above, but also give the decl a new %name
265 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
266 %feature("autodoc") decl astr;
267 %feature("docstring") decl docstr details;
268 %rename(newname) decl;
272 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
273 %feature("autodoc") decl astr;
274 %feature("docstring") decl docstr;
275 %rename(newname) decl;
282 // Set the docstring for a constructor decl and then define the decl too.
283 // Must use the full declaration of the item.
285 %define DocCtorStr(decl, docstr, details)
286 %feature("docstring") decl docstr details;
290 %define DocCtorStr(decl, docstr, details)
291 %feature("docstring") decl docstr;
297 // As above, but also give the decl a new %name
299 %define DocCtorStrName(decl, docstr, details, newname)
300 %feature("docstring") decl docstr details;
301 %rename(newname) decl;
305 %define DocCtorStrName(decl, docstr, details, newname)
306 %feature("docstring") decl docstr;
307 %rename(newname) decl;
313 // Set the autodoc string for a constructor decl and then define the decl too.
314 // Must use the full declaration of the item.
315 %define DocCtorA(decl, astr)
316 %feature("autodoc") decl astr;
320 // As above, but also give the decl a new %name
321 %define DocCtorAName(decl, astr, newname)
322 %feature("autodoc") decl astr;
323 %rename(newname) decl;
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.
332 %define DocCtorAStr(decl, astr, docstr, details)
333 %feature("autodoc") decl astr;
334 %feature("docstring") decl docstr details;
338 %define DocCtorAStr(decl, astr, docstr, details)
339 %feature("autodoc") decl astr;
340 %feature("docstring") decl docstr;
347 // As above, but also give the decl a new %name
349 %define DocCtorAStrName(decl, astr, docstr, details, newname)
350 %feature("autodoc") decl astr;
351 %feature("docstring") decl docstr details;
352 %rename(newname) decl;
356 %define DocCtorAStrName(decl, astr, docstr, details, newname)
357 %feature("autodoc") decl astr;
358 %feature("docstring") decl docstr;
359 %rename(newname) decl;
368 %#---------------------------------------------------------------------------
373 // A set of macros to make using %rename easier, since %name has been
375 %define %Rename(newname, type, decl)
376 %rename(newname) decl;
380 %define %RenameCtor(newname, decl)
381 %rename(newname) decl;
386 %define %RenameDocCtor(newname, docstr, details, decl)
387 %feature("docstring") decl docstr details;
388 %rename(newname) decl;
392 %define %RenameDocCtor(newname, docstr, details, decl)
393 %feature("docstring") decl docstr;
394 %rename(newname) decl;
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.
407 %define %MAKE_BASE_FUNC(Class, Method)
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.")
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
419 // not in the module being processed or seen by %import's.
421 #ifdef BUILDING_RENAMERS
422 #define FORWARD_DECLARE(wxName, Name)
424 %define FORWARD_DECLARE(wxName, Name)
425 %rename(Name) wxName;
430 FORWARD_DECLARE(wxString, String);
431 FORWARD_DECLARE(wxBitmap, Bitmap);
432 FORWARD_DECLARE(wxDateTime, DateTime);
433 FORWARD_DECLARE(wxInputStream, InputStream);
434 FORWARD_DECLARE(wxDC, DC);
435 FORWARD_DECLARE(wxCursor, Cursor);
436 FORWARD_DECLARE(wxRegion, Region);
437 FORWARD_DECLARE(wxColour, Colour);
438 FORWARD_DECLARE(wxFont, Font);
439 FORWARD_DECLARE(wxCaret, Caret);
440 FORWARD_DECLARE(wxToolTip, ToolTip);
441 FORWARD_DECLARE(wxPyDropTarget, DropTarget);
442 FORWARD_DECLARE(wxImageList, ImageList);
443 FORWARD_DECLARE(wxMemoryDC, MemoryDC);
444 FORWARD_DECLARE(wxHtmlTagHandler, HtmlTagHandler);
445 FORWARD_DECLARE(wxConfigBase, ConfigBase);
446 FORWARD_DECLARE(wxIcon, Icon);
447 FORWARD_DECLARE(wxStaticBox, StaticBox);
450 //---------------------------------------------------------------------------
453 #if !WXWIN_COMPATIBILITY_2_4
454 #define wxHIDE_READONLY 0
459 // General numeric #define's and etc. Making them all enums makes SWIG use the
460 // real macro when making the Python Int
478 wxTRANSPARENT_WINDOW,
480 wxDEFAULT_CONTROL_BORDER,
481 wxDEFAULT_STATUSBAR_STYLE,
568 wxSIZE_ALLOW_MINUS_ONE,
572 wxPRINT_QUALITY_HIGH,
573 wxPRINT_QUALITY_MEDIUM,
575 wxPRINT_QUALITY_DRAFT,
598 wxID_HELP_PROCEDURES,
617 wxID_VIEW_LARGEICONS,
618 wxID_VIEW_SMALLICONS,
678 wxID_REVERT_TO_SAVED,
710 wxNO_FULL_REPAINT_ON_RESIZE,
711 wxFULL_REPAINT_ON_RESIZE,
716 wxWS_EX_VALIDATE_RECURSIVELY,
717 wxWS_EX_BLOCK_EVENTS,
720 wxWS_EX_THEMED_BACKGROUND,
721 wxWS_EX_PROCESS_IDLE,
722 wxWS_EX_PROCESS_UI_UPDATES,
725 // Mapping modes (as per Windows)
738 // It looks like wxTabCtrl may rise from the dead. Uncomment these if
739 // it gets an implementation for all platforms...
740 // wxTC_RIGHTJUSTIFY,
753 enum wxGeometryCentre
788 wxALIGN_CENTER_HORIZONTAL,
789 wxALIGN_CENTRE_HORIZONTAL,
794 wxALIGN_CENTER_VERTICAL,
795 wxALIGN_CENTRE_VERTICAL,
829 enum wxBackgroundStyle
861 wxSTIPPLE_MASK_OPAQUE,
878 wxXOR, // src XOR dst
880 wxOR_REVERSE, // src OR (NOT dst)
881 wxAND_REVERSE,// src AND (NOT dst)
883 wxAND, // src AND dst
884 wxAND_INVERT, // (NOT src) AND 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)
893 // wxSRC_OR, // source _bitmap_ OR destination
894 // wxSRC_AND // source _bitmap_ AND destination
917 WXK_PRIOR, /* Page up */
918 WXK_NEXT, /* Page down */
999 WXK_NUMPAD_SEPARATOR,
1000 WXK_NUMPAD_SUBTRACT,
1010 // Hardware-specific buttons
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
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
1103 wxPAPER_A3_EXTRA_TRANSVERSE, // A3 Extra Transverse 322 x 445 mm
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 */
1159 wxDUPLEX_SIMPLEX, // Non-duplex
1160 wxDUPLEX_HORIZONTAL,
1166 // menu and toolbar item kinds
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,
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
1220 wxUPDATE_UI_NONE = 0x0000,
1221 wxUPDATE_UI_RECURSE = 0x0001,
1222 wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle
1227 //---------------------------------------------------------------------------