:right-sidebar: True ShadowNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ShadowNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` :Constructors: :: ShadowNode(**properties) new(child:Gsk.RenderNode, shadows:list) -> Gsk.ShadowNode Constructors ------------ .. rst-class:: interim-class .. class:: ShadowNode :no-index: .. classmethod:: new(child: ~gi.repository.Gsk.RenderNode, shadows: ~typing.Sequence[~gi.repository.Gsk.Shadow]) -> ~gi.repository.Gsk.ShadowNode Creates a ``GskRenderNode`` that will draw a ``child`` with the given ``shadows`` below it. :param child: The node to draw :param shadows: The shadows to apply Methods ------- .. rst-class:: interim-class .. class:: ShadowNode :no-index: .. method:: get_child() -> ~gi.repository.Gsk.RenderNode Retrieves the child ``GskRenderNode`` of the shadow ``node``. .. method:: get_n_shadows() -> int Retrieves the number of shadows in the ``node``. .. method:: get_shadow(i: int) -> ~gi.repository.Gsk.Shadow Retrieves the shadow data at the given index ``i``. :param i: the given index