RepeatNode#
- class RepeatNode(*args, **kwargs)#
Superclasses: RenderNode
A render node repeating its single child node.
Constructors#
- class RepeatNode
- classmethod new(bounds: Rect, child: RenderNode, child_bounds: Rect | None = None) RepeatNode#
Creates a
GskRenderNodethat will repeat the drawing ofchildacross the givenbounds.- Parameters:
bounds – The bounds of the area to be painted
child – The child to repeat
child_bounds – The area of the child to repeat or
Noneto use the child’s bounds
Methods#
- class RepeatNode
- get_child() RenderNode#
Retrieves the child of
node.