Class: Gsk::CompositeNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node that uses Porter/Duff compositing operators to combine
its child with the background.

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, mask, op) ⇒ Gsk::CompositeNode

Creates a GskRenderNode that will composite the child onto the
background with the given operator wherever the mask is set.

Note that various operations can modify the background outside of
the child's bounds, so the mask may cause visual changes outside
of the child.

Parameters:

Instance Method Details

#child ⇒ Gsk::RenderNode

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

Returns:

#mask ⇒ Gsk::RenderNode

Gets the mask node that describes the region where the compositing
applies.

Returns:

#operator ⇒ Gsk::PorterDuff

Gets the compositing operator used by this node.

Returns: