X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d55e5bfc69a44b707b15fd27050d8bf634ef92c7..84f85550e5e9f026d8518244cc47227e3e428a0f:/wxPython/contrib/ogl/msw/ogl.py diff --git a/wxPython/contrib/ogl/msw/ogl.py b/wxPython/contrib/ogl/msw/ogl.py index ca2383219a..1ce7d1c13d 100644 --- a/wxPython/contrib/ogl/msw/ogl.py +++ b/wxPython/contrib/ogl/msw/ogl.py @@ -1,12 +1,21 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. +""" +The Object Graphics Library provides for simple drawing and manipulation +of 2D objects. (This version is deprecated, please use wx.lib.ogl instead.) +""" + import _ogl import _windows import _core wx = _core -__docfilter__ = wx.__docfilter__ +__docfilter__ = wx.__DocFilter(globals()) +import warnings +warnings.warn("This module is deprecated. Please use the wx.lib.ogl package instead.", + DeprecationWarning, stacklevel=2) + #--------------------------------------------------------------------------- class ShapeRegion(_core.Object): @@ -349,7 +358,7 @@ class PyShape(PyShapeEvtHandler): self.this = newobj.this self.thisown = 1 del newobj.thisown - self._setOORandCallbackInfo(PyShapeEvtHandler) + self._setOORandCallbackInfo(PyShape) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" @@ -1194,15 +1203,15 @@ class PseudoMetaFile(_core.Object): return _ogl.PseudoMetaFile_DrawText(*args, **kwargs) def DrawLines(*args, **kwargs): - """DrawLines(self, int PCOUNT, Point points)""" + """DrawLines(self, int points, Point points_array)""" return _ogl.PseudoMetaFile_DrawLines(*args, **kwargs) def DrawPolygon(*args, **kwargs): - """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" + """DrawPolygon(self, int points, Point points_array, int flags=0)""" return _ogl.PseudoMetaFile_DrawPolygon(*args, **kwargs) def DrawSpline(*args, **kwargs): - """DrawSpline(self, int PCOUNT, Point points)""" + """DrawSpline(self, int points, Point points_array)""" return _ogl.PseudoMetaFile_DrawSpline(*args, **kwargs) def SetClippingRect(*args, **kwargs): @@ -1214,11 +1223,11 @@ class PseudoMetaFile(_core.Object): return _ogl.PseudoMetaFile_DestroyClippingRect(*args, **kwargs) def SetPen(*args, **kwargs): - """SetPen(self, wxPen pen, bool isOutline=FALSE)""" + """SetPen(self, wxPen pen, bool isOutline=False)""" return _ogl.PseudoMetaFile_SetPen(*args, **kwargs) def SetBrush(*args, **kwargs): - """SetBrush(self, wxBrush brush, bool isFill=FALSE)""" + """SetBrush(self, wxBrush brush, bool isFill=False)""" return _ogl.PseudoMetaFile_SetBrush(*args, **kwargs) def SetFont(*args, **kwargs): @@ -1281,7 +1290,7 @@ class PyRectangleShape(PyShape): return _ogl.PyRectangleShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyRectangleShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1443,7 +1452,7 @@ class PyControlPoint(PyRectangleShape): return _ogl.PyControlPoint_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyControlPoint_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1613,7 +1622,7 @@ class PyBitmapShape(PyRectangleShape): return _ogl.PyBitmapShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyBitmapShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1779,7 +1788,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawLine(*args, **kwargs) def DrawLines(*args, **kwargs): - """DrawLines(self, int PCOUNT, Point points)""" + """DrawLines(self, int points, Point points_array)""" return _ogl.PyDrawnShape_DrawLines(*args, **kwargs) def DrawPoint(*args, **kwargs): @@ -1787,7 +1796,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawPoint(*args, **kwargs) def DrawPolygon(*args, **kwargs): - """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" + """DrawPolygon(self, int points, Point points_array, int flags=0)""" return _ogl.PyDrawnShape_DrawPolygon(*args, **kwargs) def DrawRectangle(*args, **kwargs): @@ -1799,7 +1808,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawRoundedRectangle(*args, **kwargs) def DrawSpline(*args, **kwargs): - """DrawSpline(self, int PCOUNT, Point points)""" + """DrawSpline(self, int points, Point points_array)""" return _ogl.PyDrawnShape_DrawSpline(*args, **kwargs) def DrawText(*args, **kwargs): @@ -1839,7 +1848,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_SetDrawnBackgroundMode(*args, **kwargs) def SetDrawnBrush(*args, **kwargs): - """SetDrawnBrush(self, wxBrush pen, bool isOutline=FALSE)""" + """SetDrawnBrush(self, wxBrush pen, bool isOutline=False)""" return _ogl.PyDrawnShape_SetDrawnBrush(*args, **kwargs) def SetDrawnFont(*args, **kwargs): @@ -1847,7 +1856,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_SetDrawnFont(*args, **kwargs) def SetDrawnPen(*args, **kwargs): - """SetDrawnPen(self, wxPen pen, bool isOutline=FALSE)""" + """SetDrawnPen(self, wxPen pen, bool isOutline=False)""" return _ogl.PyDrawnShape_SetDrawnPen(*args, **kwargs) def SetDrawnTextColour(*args, **kwargs): @@ -1879,7 +1888,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDrawnShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2118,7 +2127,7 @@ class PyCompositeShape(PyRectangleShape): return _ogl.PyCompositeShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyCompositeShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2280,7 +2289,7 @@ class PyDividedShape(PyRectangleShape): return _ogl.PyDividedShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDividedShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2534,7 +2543,7 @@ class PyDivisionShape(PyCompositeShape): return _ogl.PyDivisionShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDivisionShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2684,7 +2693,7 @@ class PyEllipseShape(PyShape): return _ogl.PyEllipseShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyEllipseShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2834,7 +2843,7 @@ class PyCircleShape(PyEllipseShape): return _ogl.PyCircleShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyCircleShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3190,6 +3199,10 @@ class PyLineShape(PyShape): """GetLineControlPoints(self) -> PyObject""" return _ogl.PyLineShape_GetLineControlPoints(*args, **kwargs) + def SetLineControlPoints(*args, **kwargs): + """SetLineControlPoints(self, PyObject list)""" + return _ogl.PyLineShape_SetLineControlPoints(*args, **kwargs) + def SetAttachmentFrom(*args, **kwargs): """SetAttachmentFrom(self, int fromAttach)""" return _ogl.PyLineShape_SetAttachmentFrom(*args, **kwargs) @@ -3263,7 +3276,7 @@ class PyLineShape(PyShape): return _ogl.PyLineShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyLineShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3457,7 +3470,7 @@ class PyPolygonShape(PyShape): return _ogl.PyPolygonShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyPolygonShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3611,7 +3624,7 @@ class PyTextShape(PyRectangleShape): return _ogl.PyTextShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyTextShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3863,6 +3876,8 @@ class PyShapeCanvas(_windows.ScrolledWindow): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setOORandCallbackInfo(PyShapeCanvas) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _ogl.PyShapeCanvas__setCallbackInfo(*args, **kwargs)