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)
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):
def GetFamily(self):
val = gdic.wxFont_GetFamily(self.this)
return val
- def GetFontId(self):
- val = gdic.wxFont_GetFontId(self.this)
- return val
def GetPointSize(self):
val = gdic.wxFont_GetPointSize(self.this)
return val
def GetWeight(self):
val = gdic.wxFont_GetWeight(self.this)
return val
+ def SetFaceName(self,arg0):
+ val = gdic.wxFont_SetFaceName(self.this,arg0)
+ return val
+ def SetFamily(self,arg0):
+ val = gdic.wxFont_SetFamily(self.this,arg0)
+ return val
+ def SetPointSize(self,arg0):
+ val = gdic.wxFont_SetPointSize(self.this,arg0)
+ return val
+ def SetStyle(self,arg0):
+ val = gdic.wxFont_SetStyle(self.this,arg0)
+ return val
+ def SetUnderlined(self,arg0):
+ val = gdic.wxFont_SetUnderlined(self.this,arg0)
+ return val
+ def SetWeight(self,arg0):
+ val = gdic.wxFont_SetWeight(self.this,arg0)
+ return val
def __repr__(self):
return "<C wxFont instance>"
class wxFont(wxFontPtr):
def Ok(self):
val = gdic.wxBrush_Ok(self.this)
return val
+ def SetColour(self,arg0):
+ val = gdic.wxBrush_SetColour(self.this,arg0.this)
+ return val
+ def SetStipple(self,arg0):
+ val = gdic.wxBrush_SetStipple(self.this,arg0.this)
+ return val
+ def SetStyle(self,arg0):
+ val = gdic.wxBrush_SetStyle(self.this,arg0)
+ return val
def __repr__(self):
return "<C wxBrush instance>"
class wxBrush(wxBrushPtr):
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)
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)
+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 wxPostScriptDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
+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
+
+
+
+
+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):
+ val = gdic.wxImageList_Add(self.this,arg0.this)
+ return val
+ def Replace(self,arg0,arg1):
+ val = gdic.wxImageList_Replace(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 ------------------
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