]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_defs.i
All platforms have the same GLCanvas API now
[wxWidgets.git] / wxPython / src / _defs.i
index c0534eff691f6b1e6c2106bd9b0e687d9379defc..1751c9d5e588ce058339990f8295fb9ff62dc959 100644 (file)
@@ -162,6 +162,12 @@ typedef unsigned long   wxUIntPtr;
     %pythoncode { NAME = property(STUFF) }
 %enddef
 
+
+%define setCallbackInfo(klass)
+    "klass._setCallbackInfo(self, self, klass)"
+%enddef
+
+
 //----------------------------------------------------------------------
 // Macros for the docstring and autodoc features of SWIG.  These will
 // help make the code look more readable, and pretty, as well as help
@@ -514,8 +520,6 @@ enum {
     wxLB_EXTENDED,
     wxLB_OWNERDRAW,
     wxLB_HSCROLL,
-    wxPROCESS_ENTER,
-    wxPASSWORD,
 
     wxCB_SIMPLE,
     wxCB_DROPDOWN,
@@ -532,9 +536,6 @@ enum {
     wxSB_VERTICAL,
     wxRB_USE_CHECKBOX,
     wxST_SIZEGRIP,
-    wxST_NO_AUTORESIZE,
-    wxST_DOTS_MIDDLE,
-    wxST_DOTS_END,
     
     wxFLOOD_SURFACE,
     wxFLOOD_BORDER,
@@ -796,9 +797,8 @@ enum wxStretch
     wxSHAPED,
     wxFIXED_MINSIZE,
     wxTILE,
-    wxADJUST_MINSIZE,
 };
-
+%pythoncode { ADJUST_MINSIZE = 0 }
 
 enum wxBorder
 {
@@ -901,8 +901,6 @@ enum wxKeyCode {
     WXK_MENU,
     WXK_PAUSE,
     WXK_CAPITAL,
-    WXK_PRIOR,  /* Page up */
-    WXK_NEXT,   /* Page down */
     WXK_END,
     WXK_HOME,
     WXK_LEFT,
@@ -972,9 +970,7 @@ enum wxKeyCode {
     WXK_NUMPAD_UP,
     WXK_NUMPAD_RIGHT,
     WXK_NUMPAD_DOWN,
-    WXK_NUMPAD_PRIOR,
     WXK_NUMPAD_PAGEUP,
-    WXK_NUMPAD_NEXT,
     WXK_NUMPAD_PAGEDOWN,
     WXK_NUMPAD_END,
     WXK_NUMPAD_BEGIN,
@@ -1017,7 +1013,13 @@ enum wxKeyCode {
     WXK_SPECIAL20
 };
 
-
+// deprecated synonymns
+%pythoncode {
+    WXK_PRIOR = WXK_PAGEUP
+    WXK_NEXT  = WXK_PAGEDOWN
+    WXK_NUMPAD_PRIOR = WXK_NUMPAD_PAGEUP
+    WXK_NUMPAD_NEXT  = WXK_NUMPAD_PAGEDOWN    
+}
 
 typedef enum {
     wxPAPER_NONE,               // Use specific dimensions
@@ -1210,6 +1212,14 @@ enum wxUpdateUI
 };
 
 
+enum wxLayoutDirection
+{
+    wxLayout_Default,
+    wxLayout_LeftToRight,
+    wxLayout_RightToLeft
+};
+
+
 
 //---------------------------------------------------------------------------