+class GraphicsPath(object):
+ """Proxy of C++ GraphicsPath class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+ __swig_destroy__ = _gdi_.delete_GraphicsPath
+ __del__ = lambda self : None;
+ def MoveToPoint(*args, **kwargs):
+ """
+ MoveToPoint(self, Double x, Double y)
+
+ Begins a new subpath at (x,y)
+ """
+ return _gdi_.GraphicsPath_MoveToPoint(*args, **kwargs)
+
+ def AddLineToPoint(*args, **kwargs):
+ """
+ AddLineToPoint(self, Double x, Double y)
+
+ Adds a straight line from the current point to (x,y)
+ """
+ return _gdi_.GraphicsPath_AddLineToPoint(*args, **kwargs)
+
+ def AddCurveToPoint(*args, **kwargs):
+ """
+ AddCurveToPoint(self, Double cx1, Double cy1, Double cx2, Double cy2, Double x,
+ Double y)
+
+ Adds a cubic Bezier curve from the current point, using two control
+ points and an end point
+ """
+ return _gdi_.GraphicsPath_AddCurveToPoint(*args, **kwargs)
+
+ def CloseSubpath(*args, **kwargs):
+ """
+ CloseSubpath(self)
+
+ closes the current sub-path
+ """
+ return _gdi_.GraphicsPath_CloseSubpath(*args, **kwargs)
+
+ def GetCurrentPoint(*args, **kwargs):
+ """
+ GetCurrentPoint(self) -> Point2D
+
+ Gets the last point of the current path, (0,0) if not yet set
+ """
+ return _gdi_.GraphicsPath_GetCurrentPoint(*args, **kwargs)
+
+ def AddArc(*args, **kwargs):
+ """
+ AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
+ bool clockwise)
+
+ Adds an arc of a circle centering at (x,y) with radius (r) from
+ startAngle to endAngle
+ """
+ return _gdi_.GraphicsPath_AddArc(*args, **kwargs)
+
+ def AddQuadCurveToPoint(*args, **kwargs):
+ """
+ AddQuadCurveToPoint(self, Double cx, Double cy, Double x, Double y)
+
+ Adds a quadratic Bezier curve from the current point, using a control
+ point and an end point
+ """
+ return _gdi_.GraphicsPath_AddQuadCurveToPoint(*args, **kwargs)
+
+ def AddRectangle(*args, **kwargs):
+ """
+ AddRectangle(self, Double x, Double y, Double w, Double h)
+
+ Appends a rectangle as a new closed subpath
+ """
+ return _gdi_.GraphicsPath_AddRectangle(*args, **kwargs)
+
+ def AddCircle(*args, **kwargs):
+ """
+ AddCircle(self, Double x, Double y, Double r)
+
+ Appends a circle as a new closed subpath with the given radius.
+ """
+ return _gdi_.GraphicsPath_AddCircle(*args, **kwargs)
+
+ def AddArcToPoint(*args, **kwargs):
+ """
+ AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r)
+
+ Draws a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1)
+ to (x2,y2), also a straight line from (current) to (x1,y1)
+ """
+ return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs)
+
+_gdi_.GraphicsPath_swigregister(GraphicsPath)
+
+class GraphicsContext(object):
+ """Proxy of C++ GraphicsContext class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+ __swig_destroy__ = _gdi_.delete_GraphicsContext
+ __del__ = lambda self : None;
+ def Create(*args, **kwargs):
+ """Create(WindowDC dc) -> GraphicsContext"""
+ val = _gdi_.GraphicsContext_Create(*args, **kwargs)
+ val.__dc = args[0] # save a ref so the other dc will not be deleted before self
+ return val
+
+ Create = staticmethod(Create)
+ def CreatePath(*args, **kwargs):
+ """CreatePath(self) -> GraphicsPath"""
+ return _gdi_.GraphicsContext_CreatePath(*args, **kwargs)
+
+ def PushState(*args, **kwargs):
+ """PushState(self)"""
+ return _gdi_.GraphicsContext_PushState(*args, **kwargs)
+
+ def PopState(*args, **kwargs):
+ """PopState(self)"""
+ return _gdi_.GraphicsContext_PopState(*args, **kwargs)
+
+ def Clip(*args, **kwargs):
+ """Clip(self, Region region)"""
+ return _gdi_.GraphicsContext_Clip(*args, **kwargs)
+
+ def Translate(*args, **kwargs):
+ """Translate(self, Double dx, Double dy)"""
+ return _gdi_.GraphicsContext_Translate(*args, **kwargs)
+
+ def Scale(*args, **kwargs):
+ """Scale(self, Double xScale, Double yScale)"""
+ return _gdi_.GraphicsContext_Scale(*args, **kwargs)
+
+ def Rotate(*args, **kwargs):
+ """Rotate(self, Double angle)"""
+ return _gdi_.GraphicsContext_Rotate(*args, **kwargs)
+
+ def SetPen(*args, **kwargs):
+ """SetPen(self, Pen pen)"""
+ return _gdi_.GraphicsContext_SetPen(*args, **kwargs)
+
+ def SetBrush(*args, **kwargs):
+ """SetBrush(self, Brush brush)"""
+ return _gdi_.GraphicsContext_SetBrush(*args, **kwargs)
+
+ def SetLinearGradientBrush(*args, **kwargs):
+ """
+ SetLinearGradientBrush(self, Double x1, Double y1, Double x2, Double y2, Colour c1,
+ Colour c2)
+ """
+ return _gdi_.GraphicsContext_SetLinearGradientBrush(*args, **kwargs)
+
+ def SetRadialGradientBrush(*args, **kwargs):
+ """
+ SetRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,
+ Colour oColor, Colour cColor)
+ """
+ return _gdi_.GraphicsContext_SetRadialGradientBrush(*args, **kwargs)
+
+ def SetFont(*args, **kwargs):
+ """SetFont(self, Font font)"""
+ return _gdi_.GraphicsContext_SetFont(*args, **kwargs)
+
+ def SetTextColor(*args, **kwargs):
+ """SetTextColor(self, Colour col)"""
+ return _gdi_.GraphicsContext_SetTextColor(*args, **kwargs)
+
+ def StrokePath(*args, **kwargs):
+ """StrokePath(self, GraphicsPath path)"""
+ return _gdi_.GraphicsContext_StrokePath(*args, **kwargs)
+
+ def FillPath(*args, **kwargs):
+ """FillPath(self, GraphicsPath path, int fillStyle=WINDING_RULE)"""
+ return _gdi_.GraphicsContext_FillPath(*args, **kwargs)
+
+ def DrawPath(*args, **kwargs):
+ """DrawPath(self, GraphicsPath path, int fillStyle=WINDING_RULE)"""
+ return _gdi_.GraphicsContext_DrawPath(*args, **kwargs)
+
+ def DrawText(*args, **kwargs):
+ """DrawText(self, String str, Double x, Double y)"""
+ return _gdi_.GraphicsContext_DrawText(*args, **kwargs)
+
+ def DrawRotatedText(*args, **kwargs):
+ """DrawRotatedText(self, String str, Double x, Double y, Double angle)"""
+ return _gdi_.GraphicsContext_DrawRotatedText(*args, **kwargs)
+
+ def GetTextExtent(*args, **kwargs):
+ """GetTextExtend(self, text) --> (width, height, descent, externalLeading)"""
+ return _gdi_.GraphicsContext_GetTextExtent(*args, **kwargs)
+
+ def GetPartialTextExtents(*args, **kwargs):
+ """GetPartialTextExtents(self, text) -> [widths]"""
+ return _gdi_.GraphicsContext_GetPartialTextExtents(*args, **kwargs)
+
+ def DrawBitmap(*args, **kwargs):
+ """DrawBitmap(self, Bitmap bmp, Double x, Double y, Double w, Double h)"""
+ return _gdi_.GraphicsContext_DrawBitmap(*args, **kwargs)
+
+ def DrawIcon(*args, **kwargs):
+ """DrawIcon(self, Icon icon, Double x, Double y, Double w, Double h)"""
+ return _gdi_.GraphicsContext_DrawIcon(*args, **kwargs)
+
+ def StrokeLine(*args, **kwargs):
+ """StrokeLine(self, Double x1, Double y1, Double x2, Double y2)"""
+ return _gdi_.GraphicsContext_StrokeLine(*args, **kwargs)
+
+ def StrokeLines(*args, **kwargs):
+ """StrokeLines(self, List points)"""
+ return _gdi_.GraphicsContext_StrokeLines(*args, **kwargs)
+
+ def StrokeDisconnectedLines(*args, **kwargs):
+ """StrokeDisconnectedLines(self, PyObject beginPoints, PyObject endPoints)"""
+ return _gdi_.GraphicsContext_StrokeDisconnectedLines(*args, **kwargs)
+
+ def DrawLines(*args, **kwargs):
+ """DrawLines(self, size_t points, int fillStyle=WINDING_RULE)"""
+ return _gdi_.GraphicsContext_DrawLines(*args, **kwargs)
+
+ def DrawRectangle(*args, **kwargs):
+ """DrawRectangle(self, Double x, Double y, Double w, Double h)"""
+ return _gdi_.GraphicsContext_DrawRectangle(*args, **kwargs)
+
+ def DrawEllipse(*args, **kwargs):
+ """DrawEllipse(self, Double x, Double y, Double w, Double h)"""
+ return _gdi_.GraphicsContext_DrawEllipse(*args, **kwargs)
+
+ def DrawRoundedRectangle(*args, **kwargs):
+ """DrawRoundedRectangle(self, Double x, Double y, Double w, Double h, Double radius)"""
+ return _gdi_.GraphicsContext_DrawRoundedRectangle(*args, **kwargs)
+
+_gdi_.GraphicsContext_swigregister(GraphicsContext)
+
+def GraphicsContext_Create(*args, **kwargs):
+ """GraphicsContext_Create(WindowDC dc) -> GraphicsContext"""
+ val = _gdi_.GraphicsContext_Create(*args, **kwargs)
+ val.__dc = args[0] # save a ref so the other dc will not be deleted before self
+ return val
+
+class GCDC(DC):
+ """Proxy of C++ GCDC class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, WindowDC dc) -> GCDC"""
+ _gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args, **kwargs))
+ self.__dc = args[0] # save a ref so the other dc will not be deleted before self
+
+ __swig_destroy__ = _gdi_.delete_GCDC
+ __del__ = lambda self : None;
+ def GetGraphicContext(*args, **kwargs):
+ """GetGraphicContext(self) -> GraphicsContext"""
+ return _gdi_.GCDC_GetGraphicContext(*args, **kwargs)
+
+_gdi_.GCDC_swigregister(GCDC)
+
+class Overlay(object):
+ """Proxy of C++ Overlay class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> Overlay"""
+ _gdi_.Overlay_swiginit(self,_gdi_.new_Overlay(*args, **kwargs))
+ __swig_destroy__ = _gdi_.delete_Overlay
+ __del__ = lambda self : None;
+ def Reset(*args, **kwargs):
+ """Reset(self)"""
+ return _gdi_.Overlay_Reset(*args, **kwargs)
+
+_gdi_.Overlay_swigregister(Overlay)
+
+class DCOverlay(object):
+ """Proxy of C++ DCOverlay class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args):
+ """
+ __init__(self, Overlay overlay, WindowDC dc, int x, int y, int width,
+ int height) -> DCOverlay
+ __init__(self, Overlay overlay, WindowDC dc) -> DCOverlay
+ """
+ _gdi_.DCOverlay_swiginit(self,_gdi_.new_DCOverlay(*args))
+ __swig_destroy__ = _gdi_.delete_DCOverlay
+ __del__ = lambda self : None;
+ def Clear(*args, **kwargs):
+ """Clear(self)"""
+ return _gdi_.DCOverlay_Clear(*args, **kwargs)
+
+_gdi_.DCOverlay_swigregister(DCOverlay)
+
+#---------------------------------------------------------------------------
+