:right-sidebar: True InsetShadowNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: InsetShadowNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for an inset shadow. Constructors ------------ .. rst-class:: interim-class .. class:: InsetShadowNode :no-index: .. classmethod:: new(outline: ~gi.repository.Gsk.RoundedRect, color: ~gi.repository.Gdk.RGBA, dx: float, dy: float, spread: float, blur_radius: float) -> ~gi.repository.Gsk.InsetShadowNode Creates a ``GskRenderNode`` that will render an inset shadow into the box given by ``outline``\. :param outline: outline of the region containing the shadow :param color: color of the shadow :param dx: horizontal offset of shadow :param dy: vertical offset of shadow :param spread: how far the shadow spreads towards the inside :param blur_radius: how much blur to apply to the shadow Methods ------- .. rst-class:: interim-class .. class:: InsetShadowNode :no-index: .. method:: get_blur_radius() -> float Retrieves the blur radius to apply to the shadow. .. method:: get_color() -> ~gi.repository.Gdk.RGBA Retrieves the color of the inset shadow. The value returned by this function will not be correct if the render node was created for a non-sRGB color. .. method:: get_dx() -> float Retrieves the horizontal offset of the inset shadow. .. method:: get_dy() -> float Retrieves the vertical offset of the inset shadow. .. method:: get_outline() -> ~gi.repository.Gsk.RoundedRect Retrieves the outline rectangle of the inset shadow. .. method:: get_spread() -> float Retrieves how much the shadow spreads inwards.