Class: Gsk::ComponentTransferNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node for applying a GskComponentTransfer for each color
component of the child node.

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(child, r, g, b, a) ⇒ Gsk::ComponentTransferNode

Creates a render node that will apply component
transfers to a child node.

Parameters:

  • child (Gsk::RenderNode) —

    The child to apply component transfers to

  • r (Gsk::ComponentTransfer) —

    transfer for the red component

  • g (Gsk::ComponentTransfer) —

    transfer for the green component

  • b (Gsk::ComponentTransfer) —

    transfer for the blue component

  • a (Gsk::ComponentTransfer) —

    transfer for the alpha component

Instance Method Details

#child ⇒ Gsk::RenderNode

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

Returns:

#get_transfer(component) ⇒ Gsk::ComponentTransfer

Gets the component transfer for one of the components.

Parameters:

  • component (Gdk::ColorChannel) —

    the component to get the transfer for

Returns:

  • (Gsk::ComponentTransfer) —

    the GskComponentTransfer