]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/gdi.py
Added $(OVERRIDEFLAGS) to the end of the flags so default flags can be overridden.
[wxWidgets.git] / utils / wxPython / src / msw / gdi.py
index 7b6d5f792e457ce3f2ad44349c1d7732cc59040d..3f2305b969dd5e3cee24d2c50b02af8f3b747e5f 100644 (file)
@@ -20,6 +20,7 @@ class wxBitmapPtr :
         return val
     def GetPalette(self):
         val = gdic.wxBitmap_GetPalette(self.this)
+        val = wxPalettePtr(val)
         return val
     def GetMask(self):
         val = gdic.wxBitmap_GetMask(self.this)
@@ -35,6 +36,10 @@ class wxBitmapPtr :
         val = gdic.wxBitmap_Ok(self.this)
         return val
     def SaveFile(self,arg0,arg1,*args):
+        argl = map(None,args)
+        try: argl[0] = argl[0].this
+        except: pass
+        args = tuple(argl)
         val = apply(gdic.wxBitmap_SaveFile,(self.this,arg0,arg1,)+args)
         return val
     def SetDepth(self,arg0):
@@ -47,7 +52,7 @@ class wxBitmapPtr :
         val = gdic.wxBitmap_SetMask(self.this,arg0.this)
         return val
     def SetPalette(self,arg0):
-        val = gdic.wxBitmap_SetPalette(self.this,arg0)
+        val = gdic.wxBitmap_SetPalette(self.this,arg0.this)
         return val
     def SetWidth(self,arg0):
         val = gdic.wxBitmap_SetWidth(self.this,arg0)
@@ -417,6 +422,9 @@ class wxDCPtr :
     def EndPage(self):
         val = gdic.wxDC_EndPage(self.this)
         return val
+    def FloodFill(self,arg0,arg1,arg2,*args):
+        val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
+        return val
     def GetBackground(self):
         val = gdic.wxDC_GetBackground(self.this)
         val = wxBrushPtr(val)
@@ -510,7 +518,7 @@ class wxDCPtr :
         val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
         return val
     def SetPalette(self,arg0):
-        val = gdic.wxDC_SetPalette(self.this,arg0)
+        val = gdic.wxDC_SetPalette(self.this,arg0.this)
         return val
     def SetBrush(self,arg0):
         val = gdic.wxDC_SetBrush(self.this,arg0.this)
@@ -629,19 +637,15 @@ class wxPaintDC(wxPaintDCPtr):
 
 
 
-class wxPostScriptDCPtr(wxDCPtr):
+class wxWindowDCPtr(wxDCPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxPostScriptDC instance>"
-class wxPostScriptDC(wxPostScriptDCPtr):
-    def __init__(self,arg0,*args) :
-        argl = map(None,args)
-        try: argl[1] = argl[1].this
-        except: pass
-        args = tuple(argl)
-        self.this = apply(gdic.new_wxPostScriptDC,(arg0,)+args)
+        return "<C wxWindowDC instance>"
+class wxWindowDC(wxWindowDCPtr):
+    def __init__(self,arg0) :
+        self.this = gdic.new_wxWindowDC(arg0.this)
         self.thisown = 1
 
 
@@ -678,6 +682,32 @@ class wxMetaFileDC(wxMetaFileDCPtr):
 
 
 
+class wxPalettePtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self):
+        if self.thisown == 1 :
+            gdic.delete_wxPalette(self.this)
+    def GetPixel(self,arg0,arg1,arg2):
+        val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
+        return val
+    def GetRGB(self,arg0,arg1,arg2,arg3):
+        val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
+        return val
+    def Ok(self):
+        val = gdic.wxPalette_Ok(self.this)
+        return val
+    def __repr__(self):
+        return "<C wxPalette instance>"
+class wxPalette(wxPalettePtr):
+    def __init__(self,arg0,arg1,arg2) :
+        self.this = gdic.new_wxPalette(arg0,arg1,arg2)
+        self.thisown = 1
+
+
+
+
 
 
 #-------------- FUNCTION WRAPPERS ------------------