Inheritance diagram for wx.DCClipper:
wx.DCClipper is a small helper class for setting a clipping region on a wx.DC and unsetting it automatically.
An object of wx.DCClipper class is typically created on the stack so that it is automatically destroyed when the object goes out of scope. A typical usage example:
def DrawSomething(dc):
# Build a wx.DCClipper
clip = wx.DCClipper(rect)
# Drawing functions here are affected by clipping rect
DrawOtherThings(dc)
See also
Class constructors:
__init__(self, dc, wx.Region r)
__init__(self, dc, wx.Rect r)
__init__(self, dc, x, y, width, height)
wx.DCClipper sets the DC’s clipping region when it is constructed, and then automatically destroys the clipping region when the clipper goes out of scope.
Returns: