Gsk.MaskNode

g Gsk.MaskNode Gsk.MaskNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.MaskNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (source, mask, mask_mode)

get_mask ()

get_mask_mode ()

get_source ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.MaskNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node masking one child node with another.

New in version 4.10.

classmethod new(source, mask, mask_mode)
Parameters:
Returns:

A new GskRenderNode

Return type:

Gsk.MaskNode

Creates a GskRenderNode that will mask a given node by another.

The mask_mode determines how the ‘mask values’ are derived from the colors of the mask. Applying the mask consists of multiplying the ‘mask value’ with the alpha of the source.

New in version 4.10.

get_mask()
Returns:

the mask child node

Return type:

Gsk.RenderNode

Retrieves the mask GskRenderNode child of the self.

New in version 4.10.

get_mask_mode()
Returns:

the mask mode

Return type:

Gsk.MaskMode

Retrieves the mask mode used by self.

New in version 4.10.

get_source()
Returns:

the source child node

Return type:

Gsk.RenderNode

Retrieves the source GskRenderNode child of the self.

New in version 4.10.