:right-sidebar: True CompositeNode =================================================================== .. currentmodule:: gi.repository.Gsk .. versionadded:: 4.22 .. class:: CompositeNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node that uses Porter/Duff compositing operators to combine its child with the background. Constructors ------------ .. rst-class:: interim-class .. class:: CompositeNode :no-index: .. classmethod:: new(child: ~gi.repository.Gsk.RenderNode, mask: ~gi.repository.Gsk.RenderNode, op: ~gi.repository.Gsk.PorterDuff) -> ~gi.repository.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. .. versionadded:: 4.22 :param child: The child to composite :param mask: The mask where the compositing will apply :param op: The compositing operator Methods ------- .. rst-class:: interim-class .. class:: CompositeNode :no-index: .. method:: get_child() -> ~gi.repository.Gsk.RenderNode Gets the child node that is getting composited by the given ``node``\. .. versionadded:: 4.22 .. method:: get_mask() -> ~gi.repository.Gsk.RenderNode Gets the mask node that describes the region where the compositing applies. .. versionadded:: 4.22 .. method:: get_operator() -> ~gi.repository.Gsk.PorterDuff Gets the compositing operator used by this node. .. versionadded:: 4.22