Class: Gsk::RepeatNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node repeating its single 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(bounds, child, child_bounds) ⇒ Gsk::RepeatNode

Creates a GskRenderNode that will repeat the drawing of child across the given bounds.

Parameters:

  • bounds (Graphene::Rect)

    The bounds of the area to be painted

  • child (Gsk::RenderNode)

    The child to repeat

  • child_bounds (Graphene::Rect)

    The area of the child to repeat or nil to use the child's bounds

Instance Method Details

#childGsk::RenderNode

Retrieves the child of node.

Returns:

#child_boundsGraphene::Rect

Retrieves the bounding rectangle of the child of node.

Returns:

  • (Graphene::Rect)

    a bounding rectangle