Gsk.StrokeNode

g Gsk.RenderNode Gsk.RenderNode Gsk.StrokeNode Gsk.StrokeNode Gsk.RenderNode->Gsk.StrokeNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (9)

class

new (child, path, stroke)

get_child ()

get_path ()

get_stroke ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.StrokeNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node that will fill the area determined by stroking the the given [struct`Gsk`.Path] using the [struct`Gsk`.Stroke] attributes.

New in version 4.14.

classmethod new(child, path, stroke)
Parameters:
  • child (Gsk.RenderNode) – The node to stroke the area with

  • path (Gsk.Path) – The path describing the area to stroke

  • stroke (Gsk.Stroke) – The stroke attributes to use

Returns:

A new Gsk.RenderNode

Return type:

Gsk.StrokeNode

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

The area is filled with child.

GSK aims to follow the SVG semantics for stroking paths. E.g. zero-length contours will get round or square line caps drawn, regardless whether they are closed or not.

New in version 4.14.

get_child()
Returns:

The child that is getting drawn

Return type:

Gsk.RenderNode

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

New in version 4.14.

get_path()
Returns:

a Gsk.Path

Return type:

Gsk.Path

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

New in version 4.14.

get_stroke()
Returns:

a Gsk.Stroke

Return type:

Gsk.Stroke

Retrieves the stroke attributes used in this self.

New in version 4.14.