Class: Gsk::ShadowNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node drawing one or more shadows behind 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, shadows, n_shadows) ⇒ Gsk::ShadowNode

Creates a GskRenderNode that will draw a child with the given
shadows below it.

Parameters:

  • child (Gsk::RenderNode) —

    The node to draw

  • shadows (Array<Gsk::Shadow>) —

    The shadows to apply

  • n_shadows (Integer) —

    number of entries in the shadows array

Instance Method Details

#child ⇒ Gsk::RenderNode

Retrieves the child GskRenderNode of the shadow node.

Returns:

#get_shadow(i) ⇒ Gsk::Shadow

Retrieves the shadow data at the given index i.

Parameters:

  • i (Integer) —

    the given index

Returns:

  • (Gsk::Shadow) —

    the shadow data

#n_shadows ⇒ Integer

Retrieves the number of shadows in the node.

Returns:

  • (Integer) —

    the number of shadows.