Class: Gsk::PasteNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node for a paste.

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(bounds, depth) ⇒ Gsk::PasteNode

Creates a GskRenderNode that will paste copied contents.

Parameters:

  • bounds (Graphene::Rect) —

    the rectangle to render the paste into

  • depth (Integer) —

    the index of which copy to paste. This will usually be 0.

Instance Method Details

#depth ⇒ Integer

Retrieves the index of the copy that should be pasted.

Returns:

  • (Integer) —

    the index of the copy to paste.