X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..d91535c47f8bb17ab9740e35baea3f6450de026d:/wxPython/contrib/ogl/oglhelpers.h?ds=sidebyside diff --git a/wxPython/contrib/ogl/oglhelpers.h b/wxPython/contrib/ogl/oglhelpers.h index a24ce863b3..ef4be52d3d 100644 --- a/wxPython/contrib/ogl/oglhelpers.h +++ b/wxPython/contrib/ogl/oglhelpers.h @@ -96,10 +96,11 @@ //--------------------------------------------------------------------------- -// These are prototypes of some helper functions found in oglhelpers.cpp +// These are prototypes of some helper functions found in ogl.i wxList* wxPy_wxListHelper(PyObject* pyList, char* className); wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList); +PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source); @@ -108,10 +109,11 @@ wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList); // virtual callbacks into Python callbacks. class wxPyShapeCanvas : public wxShapeCanvas { + DECLARE_DYNAMIC_CLASS(wxPyShapeCanvas); public: wxPyShapeCanvas(wxWindow* parent = NULL, wxWindowID id = -1, - const wxPoint& pos = wxPyDefaultPosition, - const wxSize& size = wxPyDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxBORDER) : wxShapeCanvas(parent, id, pos, size, style) {} @@ -130,6 +132,7 @@ public: class wxPyShapeEvtHandler : public wxShapeEvtHandler { + DECLARE_DYNAMIC_CLASS(wxPyShapeEvtHandler); public: wxPyShapeEvtHandler(wxShapeEvtHandler *prev = NULL, wxShape *shape = NULL) : wxShapeEvtHandler(prev, shape) {} @@ -139,6 +142,7 @@ public: class wxPyShape : public wxShape { + DECLARE_ABSTRACT_CLASS(wxPyShape); public: wxPyShape(wxPyShapeCanvas *can = NULL) : wxShape(can) {} @@ -149,6 +153,7 @@ public: class wxPyRectangleShape : public wxRectangleShape { + DECLARE_DYNAMIC_CLASS(wxPyRectangleShape); public: wxPyRectangleShape(double width = 0.0, double height = 0.0) : wxRectangleShape(width, height) {} @@ -157,6 +162,7 @@ public: }; class wxPyControlPoint : public wxControlPoint { + DECLARE_DYNAMIC_CLASS(wxPyControlPoint); public: wxPyControlPoint(wxPyShapeCanvas *the_canvas = NULL, wxPyShape *object = NULL, @@ -171,6 +177,7 @@ public: class wxPyBitmapShape : public wxBitmapShape { + DECLARE_DYNAMIC_CLASS(wxPyBitmapShape); public: wxPyBitmapShape() : wxBitmapShape() {} @@ -180,6 +187,7 @@ public: class wxPyDrawnShape : public wxDrawnShape { + DECLARE_DYNAMIC_CLASS(wxPyDrawnShape); public: wxPyDrawnShape() : wxDrawnShape() {} @@ -188,6 +196,7 @@ public: class wxPyCompositeShape : public wxCompositeShape { + DECLARE_DYNAMIC_CLASS(wxPyCompositeShape); public: wxPyCompositeShape() : wxCompositeShape() {} @@ -196,6 +205,7 @@ public: class wxPyDividedShape : public wxDividedShape { + DECLARE_DYNAMIC_CLASS(wxPyDividedShape); public: wxPyDividedShape(double width = 0.0, double height = 0.0) : wxDividedShape(width, height) {} @@ -205,6 +215,7 @@ public: class wxPyDivisionShape : public wxDivisionShape { + DECLARE_DYNAMIC_CLASS(wxPyDivisionShape); public: wxPyDivisionShape() : wxDivisionShape() {} @@ -213,6 +224,7 @@ public: class wxPyEllipseShape : public wxEllipseShape { + DECLARE_DYNAMIC_CLASS(wxPyEllipseShape); public: wxPyEllipseShape(double width = 0.0, double height = 0.0) : wxEllipseShape(width, height) {} @@ -222,6 +234,7 @@ public: class wxPyCircleShape : public wxCircleShape { + DECLARE_DYNAMIC_CLASS(wxPyCircleShape); public: wxPyCircleShape(double width = 0.0) : wxCircleShape(width) {} @@ -231,6 +244,7 @@ public: class wxPyLineShape : public wxLineShape { + DECLARE_DYNAMIC_CLASS(wxPyLineShape); public: wxPyLineShape() : wxLineShape() {} @@ -239,6 +253,7 @@ public: class wxPyPolygonShape : public wxPolygonShape { + DECLARE_DYNAMIC_CLASS(wxPyPolygonShape); public: wxPyPolygonShape() : wxPolygonShape() {} @@ -247,6 +262,7 @@ public: class wxPyTextShape : public wxTextShape { + DECLARE_DYNAMIC_CLASS(wxPyTextShape); public: wxPyTextShape(double width = 0.0, double height = 0.0) : wxTextShape(width, height) {} @@ -260,3 +276,4 @@ public: //--------------------------------------------------------------------------- #endif +