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 GskRenderNode that will repeat the drawing of child across the given bounds.

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 None to use the child’s bounds

Methods

class RepeatNode
get_child() RenderNode

Retrieves the child of node.

get_child_bounds() Rect

Retrieves the bounding rectangle of the child of node.