:right-sidebar: True ClipNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ClipNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node applying a rectangular clip to its single child node. Constructors ------------ .. rst-class:: interim-class .. class:: ClipNode :no-index: .. classmethod:: new(child: ~gi.repository.Gsk.RenderNode, clip: ~gi.repository.Graphene.Rect) -> ~gi.repository.Gsk.ClipNode Creates a ``GskRenderNode`` that will clip the ``child`` to the area given by ``clip``\. :param child: The node to draw :param clip: The clip to apply Methods ------- .. rst-class:: interim-class .. class:: ClipNode :no-index: .. method:: get_child() -> ~gi.repository.Gsk.RenderNode Gets the child node that is getting clipped by the given ``node``\. .. method:: get_clip() -> ~gi.repository.Graphene.Rect Retrieves the clip rectangle for ``node``\.