StrokeNode#

Added in version 4.14.

class StrokeNode(*args, **kwargs)#

Superclasses: RenderNode

A render node that will fill the area determined by stroking the the given Path using the Stroke attributes.

Constructors#

class StrokeNode
classmethod new(child: RenderNode, path: Path, stroke: Stroke) StrokeNode#

Creates a RenderNode that will fill the outline generated by stroking the given path using the attributes defined in stroke.

The area is filled with child.

Added in version 4.14.

Parameters:
  • child – The node to stroke the area with

  • path – The path describing the area to stroke

  • stroke – The stroke attributes to use

Methods#

class StrokeNode
get_child() RenderNode#

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

Added in version 4.14.

get_path() Path#

Retrieves the path that will be stroked with the contents of the node.

Added in version 4.14.

get_stroke() Stroke#

Retrieves the stroke attributes used in this node.

Added in version 4.14.