]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/gdi.py
wxPython 2.0b9, first phase (win32)
[wxWidgets.git] / utils / wxPython / src / msw / gdi.py
index 3f2305b969dd5e3cee24d2c50b02af8f3b747e5f..ca04475c3e82c9048af70bdb2c67c660199991ea 100644 (file)
@@ -244,13 +244,6 @@ class wxPenPtr :
         val = gdic.wxPen_GetColour(self.this)
         val = wxColourPtr(val)
         return val
-    def GetDashes(self,arg0):
-        val = gdic.wxPen_GetDashes(self.this,arg0)
-        return val
-    def GetStipple(self):
-        val = gdic.wxPen_GetStipple(self.this)
-        val = wxBitmapPtr(val)
-        return val
     def GetJoin(self):
         val = gdic.wxPen_GetJoin(self.this)
         return val
@@ -269,12 +262,6 @@ class wxPenPtr :
     def SetColour(self,arg0):
         val = gdic.wxPen_SetColour(self.this,arg0.this)
         return val
-    def SetDashes(self,arg0,*args):
-        val = apply(gdic.wxPen_SetDashes,(self.this,arg0,)+args)
-        return val
-    def SetStipple(self,arg0):
-        val = gdic.wxPen_SetStipple(self.this,arg0.this)
-        return val
     def SetJoin(self,arg0):
         val = gdic.wxPen_SetJoin(self.this,arg0)
         return val
@@ -284,6 +271,19 @@ class wxPenPtr :
     def SetWidth(self,arg0):
         val = gdic.wxPen_SetWidth(self.this,arg0)
         return val
+    def GetDashes(self,arg0):
+        val = gdic.wxPen_GetDashes(self.this,arg0)
+        return val
+    def GetStipple(self):
+        val = gdic.wxPen_GetStipple(self.this)
+        val = wxBitmapPtr(val)
+        return val
+    def SetDashes(self,arg0,*args):
+        val = apply(gdic.wxPen_SetDashes,(self.this,arg0,)+args)
+        return val
+    def SetStipple(self,arg0):
+        val = gdic.wxPen_SetStipple(self.this,arg0.this)
+        return val
     def __repr__(self):
         return "<C wxPen instance>"
 class wxPen(wxPenPtr):
@@ -474,6 +474,13 @@ class wxDCPtr :
     def GetTextExtent(self,arg0):
         val = gdic.wxDC_GetTextExtent(self.this,arg0)
         return val
+    def GetFullTextExtent(self,arg0,*args):
+        argl = map(None,args)
+        try: argl[0] = argl[0].this
+        except: pass
+        args = tuple(argl)
+        val = apply(gdic.wxDC_GetFullTextExtent,(self.this,arg0,)+args)
+        return val
     def GetTextForeground(self):
         val = gdic.wxDC_GetTextForeground(self.this)
         val = wxColourPtr(val)
@@ -708,6 +715,58 @@ class wxPalette(wxPalettePtr):
 
 
 
+class wxImageListPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self):
+        if self.thisown == 1 :
+            gdic.delete_wxImageList(self.this)
+    def Add(self,arg0,*args):
+        argl = map(None,args)
+        try: argl[0] = argl[0].this
+        except: pass
+        args = tuple(argl)
+        val = apply(gdic.wxImageList_Add,(self.this,arg0.this,)+args)
+        return val
+    def AddWithColourMask(self,arg0,arg1):
+        val = gdic.wxImageList_AddWithColourMask(self.this,arg0.this,arg1.this)
+        return val
+    def AddIcon(self,arg0):
+        val = gdic.wxImageList_AddIcon(self.this,arg0.this)
+        return val
+    def Replace(self,arg0,arg1,*args):
+        argl = map(None,args)
+        try: argl[0] = argl[0].this
+        except: pass
+        args = tuple(argl)
+        val = apply(gdic.wxImageList_Replace,(self.this,arg0,arg1.this,)+args)
+        return val
+    def ReplaceIcon(self,arg0,arg1):
+        val = gdic.wxImageList_ReplaceIcon(self.this,arg0,arg1.this)
+        return val
+    def Draw(self,arg0,arg1,arg2,arg3,*args):
+        val = apply(gdic.wxImageList_Draw,(self.this,arg0,arg1.this,arg2,arg3,)+args)
+        return val
+    def GetImageCount(self):
+        val = gdic.wxImageList_GetImageCount(self.this)
+        return val
+    def Remove(self,arg0):
+        val = gdic.wxImageList_Remove(self.this,arg0)
+        return val
+    def RemoveAll(self):
+        val = gdic.wxImageList_RemoveAll(self.this)
+        return val
+    def __repr__(self):
+        return "<C wxImageList instance>"
+class wxImageList(wxImageListPtr):
+    def __init__(self,arg0,arg1,*args) :
+        self.this = apply(gdic.new_wxImageList,(arg0,arg1,)+args)
+        self.thisown = 1
+
+
+
+
 
 
 #-------------- FUNCTION WRAPPERS ------------------
@@ -791,5 +850,13 @@ wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
+wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
+wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
+wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
+wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
+wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
+wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
+wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
+wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE