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, #get_children, #get_opaque_rect, #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.

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.

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

#child ⇒ Gsk::RenderNode

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

Returns:

#path ⇒ Gsk::Path

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

Returns:

  • (Gsk::Path) —

    a Gsk::Path

#stroke ⇒ Gsk::Stroke

Retrieves the stroke attributes used in this node.

Returns:

  • (Gsk::Stroke) —

    a Gsk::Stroke