X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..c74d8df09d0c0e182cb2063cc4cc546de3a00fae:/wxPython/contrib/ogl/oglcanvas.i diff --git a/wxPython/contrib/ogl/oglcanvas.i b/wxPython/contrib/ogl/oglcanvas.i index bf96d849c0..38507e443f 100644 --- a/wxPython/contrib/ogl/oglcanvas.i +++ b/wxPython/contrib/ogl/oglcanvas.i @@ -14,7 +14,7 @@ %module oglcanvas %{ -#include "helpers.h" +#include "export.h" #include "oglhelpers.h" %} @@ -31,7 +31,7 @@ %include _ogldefs.i -%extern oglbasic.i +%import oglbasic.i %pragma(python) code = "import wx" @@ -40,12 +40,12 @@ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- -class wxDiagram { +class wxDiagram : public wxObject { public: wxDiagram(); - ~wxDiagram(); + //~wxDiagram(); - void AddShape(wxPyShape*shape, wxPyShape *addAfter = NULL); + void AddShape(wxPyShape* shape, wxPyShape *addAfter = NULL); void Clear(wxDC& dc); void DeleteAllShapes(); void DrawOutline(wxDC& dc, double x1, double y1, double x2, double y2); @@ -91,7 +91,7 @@ public: void SetQuickEditMode(bool mode); void SetSnapToGrid(bool snap); void ShowAll(bool show); - void Snap(double *OUTPUT, double *OUTPUT); + void Snap(double *INOUT, double *INOUT); }; @@ -112,15 +112,13 @@ public: class wxPyShapeCanvas : public wxScrolledWindow { 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); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShapeCanvas)" - - %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)" - %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyShapeCanvas)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void AddShape(wxPyShape *shape, wxPyShape *addAfter = NULL); @@ -147,7 +145,7 @@ public: void Redraw(wxDC& dc); void RemoveShape(wxPyShape *shape); void SetDiagram(wxDiagram *diagram); - void Snap(double *OUTPUT, double *OUTPUT); + void Snap(double *INOUT, double *INOUT); };