Class: Gsk::CompositeNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::CompositeNode
- Defined in:
- (unknown)
Overview
A render node that uses Porter/Duff compositing operators to combine
its child with the background.
Instance Method Summary collapse
-
#child ⇒ Gsk::RenderNode
Gets the child node that is getting composited by the given node.
-
#initialize(child, mask, op) ⇒ Gsk::CompositeNode
constructor
Creates a
GskRenderNodethat will composite the child onto the background with the given operator wherever the mask is set. -
#mask ⇒ Gsk::RenderNode
Gets the mask node that describes the region where the compositing applies.
-
#operator ⇒ Gsk::PorterDuff
Gets the compositing operator used by this node.
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.
Instance Method Details
#child ⇒ Gsk::RenderNode
Gets the child node that is getting composited by the given node.
#mask ⇒ Gsk::RenderNode
Gets the mask node that describes the region where the compositing
applies.
#operator ⇒ Gsk::PorterDuff
Gets the compositing operator used by this node.