X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e7ecb7be084f5815051682b2a5809090ebb2706..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/wxPython/contrib/ogl/oglcanvas.i diff --git a/wxPython/contrib/ogl/oglcanvas.i b/wxPython/contrib/ogl/oglcanvas.i index 88ed4a4345..0794f68e2b 100644 --- a/wxPython/contrib/ogl/oglcanvas.i +++ b/wxPython/contrib/ogl/oglcanvas.i @@ -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); }; @@ -147,7 +147,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); };