Class: Gsk::OpacityNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node controlling the opacity of 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, opacity) ⇒ Gsk::OpacityNode

Creates a GskRenderNode that will drawn the child with reduced opacity.

Parameters:

  • child (Gsk::RenderNode)

    The node to draw

  • opacity (Gsk::gfloat)

    The opacity to apply

Instance Method Details

#childGsk::RenderNode

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

Returns:

#opacityGsk::gfloat

Gets the transparency factor for an opacity node.

Returns:

  • (Gsk::gfloat)

    the opacity factor