Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
Added events for wxGrid Other various fixes and additions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
@@ -510,7 +515,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,6 +634,20 @@ class wxPaintDC(wxPaintDCPtr):
|
||||
|
||||
|
||||
|
||||
class wxWindowDCPtr(wxDCPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxWindowDC instance>"
|
||||
class wxWindowDC(wxWindowDCPtr):
|
||||
def __init__(self,arg0) :
|
||||
self.this = gdic.new_wxWindowDC(arg0.this)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrinterDCPtr(wxDCPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -660,6 +679,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 ------------------
|
||||
|
||||
Reference in New Issue
Block a user