Gsk.CompositeNode

g Gsk.CompositeNode Gsk.CompositeNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.CompositeNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (9)

class

new (child, mask, op)

get_child ()

get_mask ()

get_operator ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.CompositeNode
Bases:

Gsk.RenderNode

Abstract:

No

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

New in version 4.22.

classmethod new(child, mask, op)
Parameters:
Returns:

A new GskRenderNode

Return type:

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.

New in version 4.22.

get_child()
Returns:

the child GskRenderNode

Return type:

Gsk.RenderNode

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

New in version 4.22.

get_mask()
Returns:

the mask GskRenderNode

Return type:

Gsk.RenderNode

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

New in version 4.22.

get_operator()
Returns:

The compositing operator

Return type:

Gsk.PorterDuff

Gets the compositing operator used by this node.

New in version 4.22.