Gsk.MaskNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.MaskNode¶
- Bases:
- Abstract:
No
A render node masking one child node with another.
New in version 4.10.
- classmethod new(source, mask, mask_mode)¶
- Parameters:
source (
Gsk.RenderNode
) – The source node to be drawnmask (
Gsk.RenderNode
) – The node to be used as maskmask_mode (
Gsk.MaskMode
) – The mask mode to use
- Returns:
A new
GskRenderNode
- Return type:
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:
Retrieves the mask
GskRenderNode
child of the self.New in version 4.10.
- get_mask_mode()¶
- Returns:
the mask mode
- Return type:
Retrieves the mask mode used by self.
New in version 4.10.
- get_source()¶
- Returns:
the source child node
- Return type:
Retrieves the source
GskRenderNode
child of the self.New in version 4.10.