RoundedClipNode#

class RoundedClipNode(*args, **kwargs)#

Superclasses: RenderNode

A render node applying a rounded rectangle clip to its single child.

Constructors#

class RoundedClipNode
classmethod new(child: RenderNode, clip: RoundedRect) RoundedClipNode#

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 RoundedClipNode
get_child() RenderNode#

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

get_clip() RoundedRect#

Retrieves the rounded rectangle used to clip the contents of the node.