Class: Gsk::ClipNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node applying a rectangular clip to 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(child, clip) ⇒ Gsk::ClipNode

Creates a GskRenderNode that will clip the child to the area given by clip.

Parameters:

  • child (Gsk::RenderNode)

    The node to draw

  • clip (Graphene::Rect)

    The clip to apply

Instance Method Details

#childGsk::RenderNode

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

Returns:

#clipGraphene::Rect

Retrieves the clip rectangle for node.

Returns:

  • (Graphene::Rect)

    a clip rectangle