Gsk.IsolationNode

g Gsk.IsolationNode Gsk.IsolationNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.IsolationNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (9)

class

new (child, isolations)

get_child ()

get_isolations ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.IsolationNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node that isolates its child from surrounding rendernodes.

New in version 4.22.

classmethod new(child, isolations)
Parameters:
Returns:

A new GskRenderNode

Return type:

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 [flags`Gsk`.Isolation].

New in version 4.22.

get_child()
Returns:

the child GskRenderNode

Return type:

Gsk.RenderNode

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

New in version 4.22.

get_isolations()
Returns:

the isolation features

Return type:

Gsk.Isolation

Gets the isolation features that are enforced by this node.

New in version 4.22.