X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08da19d737fcb12a19a2746b438b3a3610214e6d..4e1c35f810f574af79e649fa37171dfa7fc775ee:/wxPython/contrib/ogl/oglbasic.py?ds=inline diff --git a/wxPython/contrib/ogl/oglbasic.py b/wxPython/contrib/ogl/oglbasic.py index 9a6e352b25..f9270c70d8 100644 --- a/wxPython/contrib/ogl/oglbasic.py +++ b/wxPython/contrib/ogl/oglbasic.py @@ -9,6 +9,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from events import * @@ -153,6 +155,9 @@ class wxPyShapeEvtHandlerPtr(wxObjectPtr): def Destroy(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShapeEvtHandler_Destroy,(self,) + _args, _kwargs) return val + def _setOORInfo(self, *_args, **_kwargs): + val = apply(oglbasicc.wxPyShapeEvtHandler__setOORInfo,(self,) + _args, _kwargs) + return val def SetShape(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShapeEvtHandler_SetShape,(self,) + _args, _kwargs) return val @@ -262,6 +267,7 @@ class wxPyShapeEvtHandler(wxPyShapeEvtHandlerPtr): self.this = apply(oglbasicc.new_wxPyShapeEvtHandler,_args,_kwargs) self.thisown = 1 self._setCallbackInfo(self, wxPyShapeEvtHandler) + self._setOORInfo(self) @@ -273,9 +279,6 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): def _setCallbackInfo(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape__setCallbackInfo,(self,) + _args, _kwargs) return val - def Destroy(self, *_args, **_kwargs): - val = apply(oglbasicc.wxPyShape_Destroy,(self,) + _args, _kwargs) - return val def GetBoundingBoxMax(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_GetBoundingBoxMax,(self,) + _args, _kwargs) return val @@ -450,12 +453,6 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): def SetBrush(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_SetBrush,(self,) + _args, _kwargs) return val - def SetClientData(self, *_args, **_kwargs): - val = apply(oglbasicc.wxPyShape_SetClientData,(self,) + _args, _kwargs) - return val - def GetClientData(self, *_args, **_kwargs): - val = apply(oglbasicc.wxPyShape_GetClientData,(self,) + _args, _kwargs) - return val def Show(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_Show,(self,) + _args, _kwargs) return val @@ -683,6 +680,14 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): def ClearPointList(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_ClearPointList,(self,) + _args, _kwargs) return val + def GetBackgroundPen(self, *_args, **_kwargs): + val = apply(oglbasicc.wxPyShape_GetBackgroundPen,(self,) + _args, _kwargs) + if val: val = wxPenPtr(val) ; val.thisown = 1 + return val + def GetBackgroundBrush(self, *_args, **_kwargs): + val = apply(oglbasicc.wxPyShape_GetBackgroundBrush,(self,) + _args, _kwargs) + if val: val = wxBrushPtr(val) ; val.thisown = 1 + return val def base_OnDelete(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_base_OnDelete,(self,) + _args, _kwargs) return val @@ -772,6 +777,15 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): return val def __repr__(self): return "" % (self.this,) + + def SetClientData(self, data): + self.clientData = data + def GetClientData(self): + if hasattr(self, 'clientData'): + return self.clientData + else: + return None + class wxPyShape(wxPyShapePtr): def __init__(self,this): self.this = this