//---------------------------------------------------------------------------
-class wxShapeRegion {
+class wxShapeRegion : public wxObject {
public:
wxShapeRegion();
//~wxShapeRegion();
%}
-class wxPyShapeEvtHandler {
+class wxPyShapeEvtHandler : public wxObject {
public:
wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL,
wxPyShape *shape = NULL);
- void _setSelf(PyObject* self, PyObject* _class);
- %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShapeEvtHandler)"
+ void _setCallbackInfo(PyObject* self, PyObject* _class);
+ %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyShapeEvtHandler)"
- %addmethods {
- void Destroy() { delete self; }
- }
+ %addmethods { void Destroy() { delete self; } }
void SetShape(wxPyShape *sh);
wxPyShape *GetShape();
public:
// wxPyShape(wxPyShapeCanvas *can = NULL); abstract base class...
- void _setSelf(PyObject* self, PyObject* _class);
- %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShape)"
+ void _setCallbackInfo(PyObject* self, PyObject* _class);
+ %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyShape)"
%addmethods {
void Destroy() { delete self; }
int GetAttachmentMode();
void SetId(long i);
long GetId();
+
void SetPen(wxPen *pen);
void SetBrush(wxBrush *brush);
+
// void SetClientData(wxObject *client_data);
// wxObject *GetClientData();
%addmethods {