]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/misc.py
Added wxRTTI for the new wxVScrolledWindow, wxVListBox, and
[wxWidgets.git] / wxPython / src / gtk / misc.py
index eb6de20f06f9ceadcce669ae6a501c96cf60222a..6cd20abb5ce7dcfd9dab7ad6b0a5e11b71a2f920 100644 (file)
@@ -1,35 +1,69 @@
 # This file was created automatically by SWIG.
 import miscc
+class wxObjectPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetClassName(self, *_args, **_kwargs):
+        val = miscc.wxObject_GetClassName(self, *_args, **_kwargs)
+        return val
+    def Destroy(self, *_args, **_kwargs):
+        val = miscc.wxObject_Destroy(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxObject(wxObjectPtr):
+    def __init__(self,this):
+        self.this = this
+
+
+
+
 class wxSizePtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxSize(self)
+    def __del__(self, delfunc=miscc.delete_wxSize):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def Set(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
+        val = miscc.wxSize_Set(self, *_args, **_kwargs)
         return val
     def GetX(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
+        val = miscc.wxSize_GetX(self, *_args, **_kwargs)
         return val
     def GetY(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
+        val = miscc.wxSize_GetY(self, *_args, **_kwargs)
         return val
     def GetWidth(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
+        val = miscc.wxSize_GetWidth(self, *_args, **_kwargs)
         return val
     def GetHeight(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
+        val = miscc.wxSize_GetHeight(self, *_args, **_kwargs)
         return val
     def SetWidth(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
+        val = miscc.wxSize_SetWidth(self, *_args, **_kwargs)
         return val
     def SetHeight(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
+        val = miscc.wxSize_SetHeight(self, *_args, **_kwargs)
+        return val
+    def IncTo(self, *_args, **_kwargs):
+        val = miscc.wxSize_IncTo(self, *_args, **_kwargs)
+        return val
+    def DecTo(self, *_args, **_kwargs):
+        val = miscc.wxSize_DecTo(self, *_args, **_kwargs)
         return val
     def asTuple(self, *_args, **_kwargs):
-        val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
+        val = miscc.wxSize_asTuple(self, *_args, **_kwargs)
+        return val
+    def __eq__(self, *_args, **_kwargs):
+        val = miscc.wxSize___eq__(self, *_args, **_kwargs)
+        return val
+    def __ne__(self, *_args, **_kwargs):
+        val = miscc.wxSize___ne__(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
@@ -56,12 +90,24 @@ class wxSizePtr :
             return miscc.wxSize_height_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxSize instance at %s>" % (self.this,)
-    def __str__(self): return str(self.asTuple())
-    def __repr__(self): return str(self.asTuple())
+        return "<%s.%s instance; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    
+    def __str__(self):                   return str(self.asTuple())
+    def __repr__(self):                  return 'wxSize'+str(self.asTuple())
+    def __len__(self):                   return len(self.asTuple())
+    def __getitem__(self, index):        return self.asTuple()[index]
+    def __setitem__(self, index, val):
+        if index == 0: self.width = val
+        elif index == 1: self.height = val
+        else: raise IndexError
+    def __nonzero__(self):               return self.asTuple() != (0,0)
+    def __getinitargs__(self):           return ()
+    def __getstate__(self):              return self.asTuple()
+    def __setstate__(self, state):       self.Set(*state)
+
 class wxSize(wxSizePtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxSize,_args,_kwargs)
+        self.this = miscc.new_wxSize(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -71,14 +117,31 @@ class wxRealPointPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxRealPoint(self)
+    def __del__(self, delfunc=miscc.delete_wxRealPoint):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def Set(self, *_args, **_kwargs):
-        val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
+        val = miscc.wxRealPoint_Set(self, *_args, **_kwargs)
         return val
     def asTuple(self, *_args, **_kwargs):
-        val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
+        val = miscc.wxRealPoint_asTuple(self, *_args, **_kwargs)
+        return val
+    def __add__(self, *_args, **_kwargs):
+        val = miscc.wxRealPoint___add__(self, *_args, **_kwargs)
+        if val: val = wxRealPointPtr(val) ; val.thisown = 1
+        return val
+    def __sub__(self, *_args, **_kwargs):
+        val = miscc.wxRealPoint___sub__(self, *_args, **_kwargs)
+        if val: val = wxRealPointPtr(val) ; val.thisown = 1
+        return val
+    def __eq__(self, *_args, **_kwargs):
+        val = miscc.wxRealPoint___eq__(self, *_args, **_kwargs)
+        return val
+    def __ne__(self, *_args, **_kwargs):
+        val = miscc.wxRealPoint___ne__(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
@@ -95,12 +158,24 @@ class wxRealPointPtr :
             return miscc.wxRealPoint_y_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxRealPoint instance at %s>" % (self.this,)
-    def __str__(self): return str(self.asTuple())
-    def __repr__(self): return str(self.asTuple())
+        return "<%s.%s instance; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    
+    def __str__(self):                   return str(self.asTuple())
+    def __repr__(self):                  return 'wxRealPoint'+str(self.asTuple())
+    def __len__(self):                   return len(self.asTuple())
+    def __getitem__(self, index):        return self.asTuple()[index]
+    def __setitem__(self, index, val):
+        if index == 0: self.width = val
+        elif index == 1: self.height = val
+        else: raise IndexError
+    def __nonzero__(self):      return self.asTuple() != (0.0, 0.0)
+    def __getinitargs__(self):           return ()
+    def __getstate__(self):              return self.asTuple()
+    def __setstate__(self, state):       self.Set(*state)
+
 class wxRealPoint(wxRealPointPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
+        self.this = miscc.new_wxRealPoint(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -110,14 +185,31 @@ class wxPointPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxPoint(self)
+    def __del__(self, delfunc=miscc.delete_wxPoint):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def Set(self, *_args, **_kwargs):
-        val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
+        val = miscc.wxPoint_Set(self, *_args, **_kwargs)
         return val
     def asTuple(self, *_args, **_kwargs):
-        val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
+        val = miscc.wxPoint_asTuple(self, *_args, **_kwargs)
+        return val
+    def __add__(self, *_args, **_kwargs):
+        val = miscc.wxPoint___add__(self, *_args, **_kwargs)
+        if val: val = wxPointPtr(val) ; val.thisown = 1
+        return val
+    def __sub__(self, *_args, **_kwargs):
+        val = miscc.wxPoint___sub__(self, *_args, **_kwargs)
+        if val: val = wxPointPtr(val) ; val.thisown = 1
+        return val
+    def __eq__(self, *_args, **_kwargs):
+        val = miscc.wxPoint___eq__(self, *_args, **_kwargs)
+        return val
+    def __ne__(self, *_args, **_kwargs):
+        val = miscc.wxPoint___ne__(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
@@ -134,12 +226,24 @@ class wxPointPtr :
             return miscc.wxPoint_y_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxPoint instance at %s>" % (self.this,)
-    def __str__(self): return str(self.asTuple())
-    def __repr__(self): return str(self.asTuple())
+        return "<%s.%s instance; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    
+    def __str__(self):                   return str(self.asTuple())
+    def __repr__(self):                  return 'wxPoint'+str(self.asTuple())
+    def __len__(self):                   return len(self.asTuple())
+    def __getitem__(self, index):        return self.asTuple()[index]
+    def __setitem__(self, index, val):
+        if index == 0: self.x = val
+        elif index == 1: self.y = val
+        else: raise IndexError
+    def __nonzero__(self):      return self.asTuple() != (0,0)
+    def __getinitargs__(self):           return ()
+    def __getstate__(self):              return self.asTuple()
+    def __setstate__(self, state):       self.Set(*state)
+
 class wxPoint(wxPointPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxPoint,_args,_kwargs)
+        self.this = miscc.new_wxPoint(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -149,80 +253,110 @@ class wxRectPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxRect(self)
+    def __del__(self, delfunc=miscc.delete_wxRect):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def GetX(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetX(self, *_args, **_kwargs)
         return val
     def SetX(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetX(self, *_args, **_kwargs)
         return val
     def GetY(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetY(self, *_args, **_kwargs)
         return val
     def SetY(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetY(self, *_args, **_kwargs)
         return val
     def GetWidth(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetWidth(self, *_args, **_kwargs)
         return val
     def SetWidth(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetWidth(self, *_args, **_kwargs)
         return val
     def GetHeight(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetHeight(self, *_args, **_kwargs)
         return val
     def SetHeight(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetHeight(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetSize(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetSize(self, *_args, **_kwargs)
         if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
+    def SetPosition(self, *_args, **_kwargs):
+        val = miscc.wxRect_SetPosition(self, *_args, **_kwargs)
+        return val
+    def SetSize(self, *_args, **_kwargs):
+        val = miscc.wxRect_SetSize(self, *_args, **_kwargs)
+        return val
     def GetLeft(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetLeft(self, *_args, **_kwargs)
         return val
     def GetTop(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetTop(self, *_args, **_kwargs)
         return val
     def GetBottom(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetBottom(self, *_args, **_kwargs)
         return val
     def GetRight(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
+        val = miscc.wxRect_GetRight(self, *_args, **_kwargs)
         return val
     def SetLeft(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetLeft(self, *_args, **_kwargs)
         return val
     def SetRight(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetRight(self, *_args, **_kwargs)
         return val
     def SetTop(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetTop(self, *_args, **_kwargs)
         return val
     def SetBottom(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
+        val = miscc.wxRect_SetBottom(self, *_args, **_kwargs)
+        return val
+    def Deflate(self, *_args, **_kwargs):
+        val = miscc.wxRect_Deflate(self, *_args, **_kwargs)
         return val
     def Inflate(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
+        val = miscc.wxRect_Inflate(self, *_args, **_kwargs)
+        return val
+    def InsideXY(self, *_args, **_kwargs):
+        val = miscc.wxRect_InsideXY(self, *_args, **_kwargs)
         return val
     def Inside(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
+        val = miscc.wxRect_Inside(self, *_args, **_kwargs)
+        return val
+    def Intersects(self, *_args, **_kwargs):
+        val = miscc.wxRect_Intersects(self, *_args, **_kwargs)
+        return val
+    def OffsetXY(self, *_args, **_kwargs):
+        val = miscc.wxRect_OffsetXY(self, *_args, **_kwargs)
+        return val
+    def Offset(self, *_args, **_kwargs):
+        val = miscc.wxRect_Offset(self, *_args, **_kwargs)
+        return val
+    def Set(self, *_args, **_kwargs):
+        val = miscc.wxRect_Set(self, *_args, **_kwargs)
         return val
     def asTuple(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
+        val = miscc.wxRect_asTuple(self, *_args, **_kwargs)
         return val
     def __add__(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect___add__,(self,) + _args, _kwargs)
+        val = miscc.wxRect___add__(self, *_args, **_kwargs)
         if val: val = wxRectPtr(val) ; val.thisown = 1
         return val
-    def __cmp__(self, *_args, **_kwargs):
-        val = apply(miscc.wxRect___cmp__,(self,) + _args, _kwargs)
+    def __eq__(self, *_args, **_kwargs):
+        val = miscc.wxRect___eq__(self, *_args, **_kwargs)
+        return val
+    def __ne__(self, *_args, **_kwargs):
+        val = miscc.wxRect___ne__(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
@@ -249,10 +383,23 @@ class wxRectPtr :
             return miscc.wxRect_height_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxRect instance at %s>" % (self.this,)
-    def __str__(self): return str(self.asTuple())
-    def __repr__(self): return str(self.asTuple())
+        return "<%s.%s instance; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
     
+    def __str__(self):                   return str(self.asTuple())
+    def __repr__(self):                  return 'wxRect'+str(self.asTuple())
+    def __len__(self):                   return len(self.asTuple())
+    def __getitem__(self, index):        return self.asTuple()[index]
+    def __setitem__(self, index, val):
+        if index == 0: self.x = val
+        elif index == 1: self.y = val
+        elif index == 2: self.width = val
+        elif index == 3: self.height = val
+        else: raise IndexError
+    def __nonzero__(self):               return self.asTuple() != (0,0,0,0)
+    def __getinitargs__(self):           return ()
+    def __getstate__(self):              return self.asTuple()
+    def __setstate__(self, state):       self.Set(*state)
+
     # override the __getattr__ made by SWIG
     def __getattr__(self, name):
         d = {
@@ -292,48 +439,179 @@ class wxRectPtr :
     
 class wxRect(wxRectPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxRect,_args,_kwargs)
+        self.this = miscc.new_wxRect(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxPoint2DDoublePtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetFloor(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetFloor(self, *_args, **_kwargs)
+        return val
+    def GetRounded(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetRounded(self, *_args, **_kwargs)
+        return val
+    def GetVectorLength(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetVectorLength(self, *_args, **_kwargs)
+        return val
+    def GetVectorAngle(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetVectorAngle(self, *_args, **_kwargs)
+        return val
+    def SetVectorLength(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_SetVectorLength(self, *_args, **_kwargs)
+        return val
+    def SetVectorAngle(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_SetVectorAngle(self, *_args, **_kwargs)
+        return val
+    def GetDistance(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetDistance(self, *_args, **_kwargs)
+        return val
+    def GetDistanceSquare(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetDistanceSquare(self, *_args, **_kwargs)
+        return val
+    def GetDotProduct(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetDotProduct(self, *_args, **_kwargs)
+        return val
+    def GetCrossProduct(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_GetCrossProduct(self, *_args, **_kwargs)
+        return val
+    def Set(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_Set(self, *_args, **_kwargs)
+        return val
+    def __neg__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___neg__(self, *_args, **_kwargs)
+        if val: val = wxPoint2DDoublePtr(val) ; val.thisown = 1
+        return val
+    def __iadd__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___iadd__(self, *_args, **_kwargs)
+        if val: val = wxPoint2DDoublePtr(val) 
+        return val
+    def __isub__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___isub__(self, *_args, **_kwargs)
+        if val: val = wxPoint2DDoublePtr(val) 
+        return val
+    def __imul__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___imul__(self, *_args, **_kwargs)
+        if val: val = wxPoint2DDoublePtr(val) 
+        return val
+    def __idiv__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___idiv__(self, *_args, **_kwargs)
+        if val: val = wxPoint2DDoublePtr(val) 
+        return val
+    def __eq__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___eq__(self, *_args, **_kwargs)
+        return val
+    def __ne__(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble___ne__(self, *_args, **_kwargs)
+        return val
+    def asTuple(self, *_args, **_kwargs):
+        val = miscc.wxPoint2DDouble_asTuple(self, *_args, **_kwargs)
+        return val
+    def __setattr__(self,name,value):
+        if name == "m_x" :
+            miscc.wxPoint2DDouble_m_x_set(self,value)
+            return
+        if name == "m_y" :
+            miscc.wxPoint2DDouble_m_y_set(self,value)
+            return
+        if name == "x" :
+            miscc.wxPoint2DDouble_x_set(self,value)
+            return
+        if name == "y" :
+            miscc.wxPoint2DDouble_y_set(self,value)
+            return
+        self.__dict__[name] = value
+    def __getattr__(self,name):
+        if name == "m_x" : 
+            return miscc.wxPoint2DDouble_m_x_get(self)
+        if name == "m_y" : 
+            return miscc.wxPoint2DDouble_m_y_get(self)
+        if name == "x" : 
+            return miscc.wxPoint2DDouble_x_get(self)
+        if name == "y" : 
+            return miscc.wxPoint2DDouble_y_get(self)
+        raise AttributeError,name
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    
+    def SetPolarCoordinates(self, angle, length):
+        self.SetVectorLength(length)
+        self.SetVectorAngle(angle)
+    def Normalize(self):
+        self.SetVectorLength(1.0)
+    
+    
+    def __str__(self):                   return str(self.asTuple())
+    def __repr__(self):                  return 'wxPoint2DDouble'+str(self.asTuple())
+    def __len__(self):                   return len(self.asTuple())
+    def __getitem__(self, index):        return self.asTuple()[index]
+    def __setitem__(self, index, val):
+        if index == 0: self.m_x = val
+        elif index == 1: self.m_yt = val
+        else: raise IndexError
+    def __nonzero__(self):               return self.asTuple() != (0.0, 0.0)
+    def __getinitargs__(self):           return ()
+    def __getstate__(self):              return self.asTuple()
+    def __setstate__(self, state):       self.Set(*state)
+
+class wxPoint2DDouble(wxPoint2DDoublePtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = miscc.new_wxPoint2DDouble(*_args,**_kwargs)
         self.thisown = 1
 
 
 
+def wxPoint2DDoubleCopy(*_args,**_kwargs):
+    val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleCopy(*_args,**_kwargs))
+    val.thisown = 1
+    return val
+
+def wxPoint2DDoubleFromPoint(*_args,**_kwargs):
+    val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleFromPoint(*_args,**_kwargs))
+    val.thisown = 1
+    return val
+
 
-class wxIndividualLayoutConstraintPtr :
+class wxIndividualLayoutConstraintPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def Above(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_Above(self, *_args, **_kwargs)
         return val
     def Absolute(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_Absolute(self, *_args, **_kwargs)
         return val
     def AsIs(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_AsIs(self, *_args, **_kwargs)
         return val
     def Below(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_Below(self, *_args, **_kwargs)
         return val
     def Unconstrained(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_Unconstrained(self, *_args, **_kwargs)
         return val
     def LeftOf(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_LeftOf(self, *_args, **_kwargs)
         return val
     def PercentOf(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_PercentOf(self, *_args, **_kwargs)
         return val
     def RightOf(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_RightOf(self, *_args, **_kwargs)
         return val
     def SameAs(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_SameAs(self, *_args, **_kwargs)
         return val
     def Set(self, *_args, **_kwargs):
-        val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
+        val = miscc.wxIndividualLayoutConstraint_Set(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
     def __init__(self,this):
         self.this = this
@@ -341,7 +619,7 @@ class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
 
 
 
-class wxLayoutConstraintsPtr :
+class wxLayoutConstraintsPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
@@ -390,133 +668,10 @@ class wxLayoutConstraintsPtr :
             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxLayoutConstraints instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLayoutConstraints(wxLayoutConstraintsPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
-        self.thisown = 1
-
-
-
-
-class wxRegionPtr :
-    def __init__(self,this):
-        self.this = this
-        self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxRegion(self)
-    def Clear(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
-        return val
-    def Contains(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
-        return val
-    def ContainsPoint(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
-        return val
-    def ContainsRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
-        return val
-    def ContainsRectDim(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
-        return val
-    def GetBox(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
-        if val: val = wxRectPtr(val) ; val.thisown = 1
-        return val
-    def Intersect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
-        return val
-    def IntersectRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_IntersectRect,(self,) + _args, _kwargs)
-        return val
-    def IntersectRegion(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
-        return val
-    def IsEmpty(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
-        return val
-    def Union(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs)
-        return val
-    def UnionRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_UnionRect,(self,) + _args, _kwargs)
-        return val
-    def UnionRegion(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_UnionRegion,(self,) + _args, _kwargs)
-        return val
-    def Subtract(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
-        return val
-    def SubtractRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_SubtractRect,(self,) + _args, _kwargs)
-        return val
-    def SubtractRegion(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
-        return val
-    def Xor(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
-        return val
-    def XorRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_XorRect,(self,) + _args, _kwargs)
-        return val
-    def XorRegion(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegion_XorRegion,(self,) + _args, _kwargs)
-        return val
-    def __repr__(self):
-        return "<C wxRegion instance at %s>" % (self.this,)
-class wxRegion(wxRegionPtr):
-    def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxRegion,_args,_kwargs)
-        self.thisown = 1
-
-
-
-
-class wxRegionIteratorPtr :
-    def __init__(self,this):
-        self.this = this
-        self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxRegionIterator(self)
-    def GetX(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
-        return val
-    def GetY(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
-        return val
-    def GetW(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
-        return val
-    def GetWidth(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
-        return val
-    def GetH(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
-        return val
-    def GetHeight(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
-        return val
-    def GetRect(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
-        if val: val = wxRectPtr(val) ; val.thisown = 1
-        return val
-    def HaveRects(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
-        return val
-    def Reset(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
-        return val
-    def Next(self, *_args, **_kwargs):
-        val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
-        return val
-    def __repr__(self):
-        return "<C wxRegionIterator instance at %s>" % (self.this,)
-class wxRegionIterator(wxRegionIteratorPtr):
-    def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
+        self.this = miscc.new_wxLayoutConstraints(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -526,60 +681,69 @@ class wxAcceleratorEntryPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxAcceleratorEntry(self)
+    def __del__(self, delfunc=miscc.delete_wxAcceleratorEntry):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def Set(self, *_args, **_kwargs):
-        val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
+        val = miscc.wxAcceleratorEntry_Set(self, *_args, **_kwargs)
         return val
     def GetFlags(self, *_args, **_kwargs):
-        val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
+        val = miscc.wxAcceleratorEntry_GetFlags(self, *_args, **_kwargs)
         return val
     def GetKeyCode(self, *_args, **_kwargs):
-        val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
+        val = miscc.wxAcceleratorEntry_GetKeyCode(self, *_args, **_kwargs)
         return val
     def GetCommand(self, *_args, **_kwargs):
-        val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
+        val = miscc.wxAcceleratorEntry_GetCommand(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxAcceleratorEntry(wxAcceleratorEntryPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
+        self.this = miscc.new_wxAcceleratorEntry(*_args,**_kwargs)
         self.thisown = 1
 
 
 
 
-class wxAcceleratorTablePtr :
+class wxAcceleratorTablePtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxAcceleratorTable(self)
+    def __del__(self, delfunc=miscc.delete_wxAcceleratorTable):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
-        return "<C wxAcceleratorTable instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxAcceleratorTable(wxAcceleratorTablePtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
+        self.this = miscc.new_wxAcceleratorTable(*_args,**_kwargs)
         self.thisown = 1
 
 
 
 
-class wxBusyInfoPtr :
+class wxBusyInfoPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,miscc=miscc):
-        if self.thisown == 1 :
-            miscc.delete_wxBusyInfo(self)
+    def __del__(self, delfunc=miscc.delete_wxBusyInfo):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
-        return "<C wxBusyInfo instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxBusyInfo(wxBusyInfoPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs)
+        self.this = miscc.new_wxBusyInfo(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -595,18 +759,12 @@ wxNewId = miscc.wxNewId
 
 wxRegisterId = miscc.wxRegisterId
 
-NewId = miscc.NewId
-
-RegisterId = miscc.RegisterId
+wxGetCurrentId = miscc.wxGetCurrentId
 
 wxBell = miscc.wxBell
 
-wxDisplaySize = miscc.wxDisplaySize
-
 wxEndBusyCursor = miscc.wxEndBusyCursor
 
-wxExecute = miscc.wxExecute
-
 wxGetElapsedTime = miscc.wxGetElapsedTime
 
 wxGetMousePosition = miscc.wxGetMousePosition
@@ -621,22 +779,49 @@ wxStartTimer = miscc.wxStartTimer
 
 wxGetOsVersion = miscc.wxGetOsVersion
 
+wxGetOsDescription = miscc.wxGetOsDescription
+
+wxShutdown = miscc.wxShutdown
+
 wxSleep = miscc.wxSleep
 
+wxUsleep = miscc.wxUsleep
+
 wxYield = miscc.wxYield
 
-wxSafeYield = miscc.wxSafeYield
+wxYieldIfNeeded = miscc.wxYieldIfNeeded
 
 wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
 
-wxGetResource = miscc.wxGetResource
-
 wxStripMenuCodes = miscc.wxStripMenuCodes
 
+wxGetEmailAddress = miscc.wxGetEmailAddress
+
+wxGetHostName = miscc.wxGetHostName
+
+wxGetFullHostName = miscc.wxGetFullHostName
+
+wxGetUserId = miscc.wxGetUserId
+
+wxGetUserName = miscc.wxGetUserName
+
+wxGetHomeDir = miscc.wxGetHomeDir
+
+wxGetUserHome = miscc.wxGetUserHome
+
+wxGetProcessId = miscc.wxGetProcessId
+
+def wxGetAccelFromString(*_args, **_kwargs):
+    val = miscc.wxGetAccelFromString(*_args,**_kwargs)
+    if val: val = wxAcceleratorEntryPtr(val)
+    return val
+
 
 
 #-------------- VARIABLE WRAPPERS ------------------
 
+wxSHUTDOWN_POWEROFF = miscc.wxSHUTDOWN_POWEROFF
+wxSHUTDOWN_REBOOT = miscc.wxSHUTDOWN_REBOOT
 wxLeft = miscc.wxLeft
 wxTop = miscc.wxTop
 wxRight = miscc.wxRight
@@ -656,8 +841,5 @@ wxLeftOf = miscc.wxLeftOf
 wxRightOf = miscc.wxRightOf
 wxSameAs = miscc.wxSameAs
 wxAbsolute = miscc.wxAbsolute
-wxOutRegion = miscc.wxOutRegion
-wxPartRegion = miscc.wxPartRegion
-wxInRegion = miscc.wxInRegion
 cvar = miscc.cvar
 wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)