InsetShadowNode

class InsetShadowNode(*args, **kwargs)

Superclasses: RenderNode

A render node for an inset shadow.

Constructors

class InsetShadowNode
classmethod new(outline: RoundedRect, color: RGBA, dx: float, dy: float, spread: float, blur_radius: float) InsetShadowNode

Creates a GskRenderNode that will render an inset shadow into the box given by outline.

Parameters:
  • outline – outline of the region containing the shadow

  • color – color of the shadow

  • dx – horizontal offset of shadow

  • dy – vertical offset of shadow

  • spread – how far the shadow spreads towards the inside

  • blur_radius – how much blur to apply to the shadow

Methods

class InsetShadowNode
get_blur_radius() float

Retrieves the blur radius to apply to the shadow.

get_color() RGBA

Retrieves the color of the inset shadow.

get_dx() float

Retrieves the horizontal offset of the inset shadow.

get_dy() float

Retrieves the vertical offset of the inset shadow.

get_outline() RoundedRect

Retrieves the outline rectangle of the inset shadow.

get_spread() float

Retrieves how much the shadow spreads inwards.