Class: Gsk::StrokeNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

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

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(child, path, stroke) ⇒ 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.

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

Instance Method Details

#childGsk::RenderNode

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

Returns:

#pathGsk::Path

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

Returns:

  • (Gsk::Path)

    a Gsk::Path

#strokeGsk::Stroke

Retrieves the stroke attributes used in this node.

Returns:

  • (Gsk::Stroke)

    a Gsk::Stroke