def __init__(self, brown_object, pos, pen, brush,
clip_start_x=None, clip_width=None):
"""
Args:
brown_object (Path): The path this interface belongs to
pos (Point[GraphicUnit] or tuple): The position of the path root
relative to the document.
pen (PenInterface): The pen to draw outlines with.
brush (BrushInterface): The brush to draw outlines with.
clip_start_x (Unit or None): The local starting position for the
path clipping region. Use `None` to render from the start.
clip_width (Unit or None): The width of the path clipping region.
Use `None` to render to the end
"""
super().__init__(brown_object)
self.qt_path = QtGui.QPainterPath()
self.qt_object = QClippingPath(self.qt_path,
clip_start_x, clip_width)
self.pos = pos
self.pen = pen
self.brush = brush
self.clip_start_x = clip_start_x
self.clip_width = clip_width
######## PUBLIC PROPERTIES ########
评论列表
文章目录