ClipNode

class ClipNode(*args, **kwargs)

Superclasses: RenderNode

A render node applying a rectangular clip to its single child node.

Constructors

class ClipNode
classmethod new(child: RenderNode, clip: Rect) ClipNode

Creates a GskRenderNode that will clip the child to the area given by clip.

Parameters:
  • child – The node to draw

  • clip – The clip to apply

Methods

class ClipNode
get_child() RenderNode

Gets the child node that is getting clipped by the given node.

get_clip() Rect

Retrieves the clip rectangle for node.