X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/105e45b9d02d7e9ed10923957ae1ce60c037273d..a91b47e800c78dbf8e91191ce3977d148a13f1fe:/utils/wxPython/src/gtk/gdi.py diff --git a/utils/wxPython/src/gtk/gdi.py b/utils/wxPython/src/gtk/gdi.py index 840dfb0bf3..05e3e899e9 100644 --- a/utils/wxPython/src/gtk/gdi.py +++ b/utils/wxPython/src/gtk/gdi.py @@ -147,9 +147,6 @@ class wxFontPtr : 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 @@ -162,6 +159,24 @@ class wxFontPtr : 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 "" class wxFont(wxFontPtr): @@ -273,6 +288,15 @@ class wxBrushPtr : 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 "" class wxBrush(wxBrushPtr): @@ -380,12 +404,10 @@ class wxDCPtr : def GetBackground(self): val = gdic.wxDC_GetBackground(self.this) val = wxBrushPtr(val) - val.thisown = 1 return val def GetBrush(self): val = gdic.wxDC_GetBrush(self.this) val = wxBrushPtr(val) - val.thisown = 1 return val def GetCharHeight(self): val = gdic.wxDC_GetCharHeight(self.this) @@ -399,7 +421,6 @@ class wxDCPtr : def GetFont(self): val = gdic.wxDC_GetFont(self.this) val = wxFontPtr(val) - val.thisown = 1 return val def GetLogicalFunction(self): val = gdic.wxDC_GetLogicalFunction(self.this) @@ -413,7 +434,6 @@ class wxDCPtr : def GetPen(self): val = gdic.wxDC_GetPen(self.this) val = wxPenPtr(val) - val.thisown = 1 return val def GetPixel(self,arg0,arg1): val = gdic.wxDC_GetPixel(self.this,arg0,arg1) @@ -593,6 +613,20 @@ class wxPaintDC(wxPaintDCPtr): +class wxWindowDCPtr(wxDCPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" +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