Class: Gsk::FillNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node filling the area given by [structGsk.Path] and [enumGsk.FillRule] with the child node.

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, fill_rule) ⇒ Gsk::FillNode

Creates a GskRenderNode that will fill the child in the area given by path and fill_rule.

Parameters:

  • child (Gsk::RenderNode)

    The node to fill the area with

  • path (Gsk::Path)

    The path describing the area to fill

  • fill_rule (Gsk::FillRule)

    The fill rule to use

Instance Method Details

#childGsk::RenderNode

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

Returns:

#fill_ruleGsk::FillRule

Retrieves the fill rule used to determine how the path is filled.

Returns:

#pathGsk::Path

Retrieves the path used to describe the area filled with the contents of the node.

Returns:

  • (Gsk::Path)

    a GskPath