Class: Gsk::IsolationNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::IsolationNode
- Defined in:
- (unknown)
Overview
A render node that isolates its child from surrounding rendernodes.
Instance Method Summary collapse
-
#child ⇒ Gsk::RenderNode
Gets the child node that is getting drawn by the given node.
-
#initialize(child, isolations) ⇒ Gsk::IsolationNode
constructor
Creates a
GskRenderNodethat isolates the drawing operations of the child from surrounding ones. -
#isolations ⇒ Gsk::Isolation
Gets the isolation features that are enforced 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, isolations) ⇒ Gsk::IsolationNode
Creates a GskRenderNode that isolates the drawing operations of
the child from surrounding ones.
You can express "everything but these flags" in a forward compatible
way by using bit math:
GSK_ISOLATION_ALL & ~(GSK_ISOLATION_BACKGROUND | GSK_ISOLATION_COPY_PASTE)
will isolate everything but background and copy/paste.
For the available isolations, see [flagsGsk.Isolation].
Instance Method Details
#child ⇒ Gsk::RenderNode
Gets the child node that is getting drawn by the given node.
#isolations ⇒ Gsk::Isolation
Gets the isolation features that are enforced by this node.