Use self in DC method signatures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -258,70 +258,70 @@ been reverted and the wx.DC Draw methods with 2.4 compatible
|
|||||||
signatures have been restored. In addition a new set of methods have
|
signatures have been restored. In addition a new set of methods have
|
||||||
been added that take wx.Point and/or wx.Size parameters instead of
|
been added that take wx.Point and/or wx.Size parameters instead of
|
||||||
separate integer parameters. The Draw and etc. methods now available
|
separate integer parameters. The Draw and etc. methods now available
|
||||||
are::
|
in the wx.DC class are::
|
||||||
|
|
||||||
|
|
||||||
FloodFill(x, y, colour, style = wx.FLOOD_SURFACE)
|
FloodFill(self, x, y, colour, style = wx.FLOOD_SURFACE)
|
||||||
FoodFillPoint(pt, colour, style = wx.FLOOD_SURFACE)
|
FoodFillPoint(self, pt, colour, style = wx.FLOOD_SURFACE)
|
||||||
|
|
||||||
GetPixel(x,y)
|
GetPixel(self, x,y)
|
||||||
GetPixelPoint(pt)
|
GetPixelPoint(self, pt)
|
||||||
|
|
||||||
DrawLine(x1, y1, x2, y2)
|
DrawLine(self, x1, y1, x2, y2)
|
||||||
DrawLinePoint(pt1, pt2)
|
DrawLinePoint(self, pt1, pt2)
|
||||||
|
|
||||||
CrossHair(x, y)
|
CrossHair(self, x, y)
|
||||||
CrossHairPoint(pt)
|
CrossHairPoint(self, pt)
|
||||||
|
|
||||||
DrawArc(x1, y1, x2, y2, xc, yc)
|
DrawArc(self, x1, y1, x2, y2, xc, yc)
|
||||||
DrawArcPoint(pt1, pt2, centre)
|
DrawArcPoint(self, pt1, pt2, centre)
|
||||||
|
|
||||||
DrawCheckMark(x, y, width, height)
|
DrawCheckMark(self, x, y, width, height)
|
||||||
DrawCheckMarkRect(rect)
|
DrawCheckMarkRect(self, rect)
|
||||||
|
|
||||||
DrawEllipticArc(x, y, w, h, sa, ea)
|
DrawEllipticArc(self, x, y, w, h, sa, ea)
|
||||||
DrawEllipticArcPointSize(pt, sz, sa, ea)
|
DrawEllipticArcPointSize(self, pt, sz, sa, ea)
|
||||||
|
|
||||||
DrawPoint(x, y)
|
DrawPoint(self, x, y)
|
||||||
DrawPointPoint(pt)
|
DrawPointPoint(self, pt)
|
||||||
|
|
||||||
DrawRectangle(x, y, width, height)
|
DrawRectangle(self, x, y, width, height)
|
||||||
DrawRectangleRect(rect)
|
DrawRectangleRect(self, rect)
|
||||||
DrawRectanglePointSize(pt, sz)
|
DrawRectanglePointSize(self, pt, sz)
|
||||||
|
|
||||||
DrawRoundedRectangle(x, y, width, height, radius)
|
DrawRoundedRectangle(self, x, y, width, height, radius)
|
||||||
DrawRoundedRectangleRect(r, radius)
|
DrawRoundedRectangleRect(self, r, radius)
|
||||||
DrawRoundedRectanglePointSize(pt, sz, radius)
|
DrawRoundedRectanglePointSize(self, pt, sz, radius)
|
||||||
|
|
||||||
DrawCircle(x, y, radius)
|
DrawCircle(self, x, y, radius)
|
||||||
DrawCirclePoint(pt, radius)
|
DrawCirclePoint(self, pt, radius)
|
||||||
|
|
||||||
DrawEllipse(x, y, width, height)
|
DrawEllipse(self, x, y, width, height)
|
||||||
DrawEllipseRect(rect)
|
DrawEllipseRect(self, rect)
|
||||||
DrawEllipsePointSize(pt, sz)
|
DrawEllipsePointSize(self, pt, sz)
|
||||||
|
|
||||||
DrawIcon(icon, x, y)
|
DrawIcon(self, icon, x, y)
|
||||||
DrawIconPoint(icon, pt)
|
DrawIconPoint(self, icon, pt)
|
||||||
|
|
||||||
DrawBitmap(bmp, x, y, useMask = False)
|
DrawBitmap(self, bmp, x, y, useMask = False)
|
||||||
DrawBitmapPoint(bmp, pt, useMask = False)
|
DrawBitmapPoint(self, bmp, pt, useMask = False)
|
||||||
|
|
||||||
DrawText(text, x, y)
|
DrawText(self, text, x, y)
|
||||||
DrawTextPoint(text, pt)
|
DrawTextPoint(self, text, pt)
|
||||||
|
|
||||||
DrawRotatedText(text, x, y, angle)
|
DrawRotatedText(self, text, x, y, angle)
|
||||||
DrawRotatedTextPoint(text, pt, angle)
|
DrawRotatedTextPoint(self, text, pt, angle)
|
||||||
|
|
||||||
bool Blit(xdest, ydest, width, height, sourceDC, xsrc, ysrc,
|
bool Blit(self, xdest, ydest, width, height, sourceDC, xsrc, ysrc,
|
||||||
rop = wx.COPY, useMask = False, xsrcMask = -1, ysrcMask = -1)
|
rop = wx.COPY, useMask = False, xsrcMask = -1, ysrcMask = -1)
|
||||||
BlitPointSize(destPt, sz, sourceDC, srcPt, rop = wx.COPY,
|
BlitPointSize(self, destPt, sz, sourceDC, srcPt, rop = wx.COPY,
|
||||||
useMask = False, srcPtMask = wxDefaultPosition)
|
useMask = False, srcPtMask = wxDefaultPosition)
|
||||||
|
|
||||||
|
|
||||||
SetClippingRegion(x, y, width, height)
|
SetClippingRegion(self, x, y, width, height)
|
||||||
SetClippingRegionPointSize(pt, sz)
|
SetClippingRegionPointSize(self, pt, sz)
|
||||||
SetClippingRegionAsRegion(region)
|
SetClippingRegionAsRegion(self, region)
|
||||||
SetClippingRect(rect)
|
SetClippingRect(self, rect)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user