X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a95a71334ccdc0377a515e1a23529930e7d86ac9..9342fdbe5e17b09025d53496dd983bc7eb99f21f:/wxPython/contrib/ogl/mac/ogl.py diff --git a/wxPython/contrib/ogl/mac/ogl.py b/wxPython/contrib/ogl/mac/ogl.py index b2f2516f95..d7323ed148 100644 --- a/wxPython/contrib/ogl/mac/ogl.py +++ b/wxPython/contrib/ogl/mac/ogl.py @@ -1,15 +1,24 @@ # 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__ +import _windows +import _core +wx = _core +__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): +class ShapeRegion(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxShapeRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -138,7 +147,7 @@ class ShapeRegionPtr(ShapeRegion): self.__class__ = ShapeRegion _ogl.ShapeRegion_swigregister(ShapeRegionPtr) -class AttachmentPoint(core.Object): +class AttachmentPoint(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxAttachmentPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -158,7 +167,7 @@ class AttachmentPointPtr(AttachmentPoint): self.__class__ = AttachmentPoint _ogl.AttachmentPoint_swigregister(AttachmentPointPtr) -class PyShapeEvtHandler(core.Object): +class PyShapeEvtHandler(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyShapeEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -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)""" @@ -1066,7 +1075,7 @@ _ogl.PyShape_swigregister(PyShapePtr) oglMETAFLAGS_OUTLINE = _ogl.oglMETAFLAGS_OUTLINE oglMETAFLAGS_ATTACHMENTS = _ogl.oglMETAFLAGS_ATTACHMENTS -class PseudoMetaFile(core.Object): +class PseudoMetaFile(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPseudoMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -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): @@ -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): @@ -2005,7 +2014,7 @@ class PyDrawnShapePtr(PyDrawnShape): self.__class__ = PyDrawnShape _ogl.PyDrawnShape_swigregister(PyDrawnShapePtr) -class OGLConstraint(core.Object): +class OGLConstraint(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxOGLConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2960,7 +2969,7 @@ class PyCircleShapePtr(PyCircleShape): self.__class__ = PyCircleShape _ogl.PyCircleShape_swigregister(PyCircleShapePtr) -class ArrowHead(core.Object): +class ArrowHead(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxArrowHead instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *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) @@ -3737,7 +3750,7 @@ class PyTextShapePtr(PyTextShape): self.__class__ = PyTextShape _ogl.PyTextShape_swigregister(PyTextShapePtr) -class Diagram(core.Object): +class Diagram(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxDiagram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3850,7 +3863,7 @@ class DiagramPtr(Diagram): self.__class__ = Diagram _ogl.Diagram_swigregister(DiagramPtr) -class PyShapeCanvas(windows.ScrolledWindow): +class PyShapeCanvas(_windows.ScrolledWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxPyShapeCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *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)