CompositeNode#

Added in version 4.22.

class CompositeNode(*args, **kwargs)#

Superclasses: RenderNode

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

Constructors#

class CompositeNode
classmethod new(child: RenderNode, mask: RenderNode, op: PorterDuff) 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.

Added in version 4.22.

Parameters:
  • child – The child to composite

  • mask – The mask where the compositing will apply

  • op – The compositing operator

Methods#

class CompositeNode
get_child() RenderNode#

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

Added in version 4.22.

get_mask() RenderNode#

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

Added in version 4.22.

get_operator() PorterDuff#

Gets the compositing operator used by this node.

Added in version 4.22.