ShadowNode#

class ShadowNode(*args, **kwargs)#

Superclasses: RenderNode

A render node drawing one or more shadows behind its single child node.

Constructors#

class ShadowNode
classmethod new(child: RenderNode, shadows: list[Shadow]) ShadowNode#

Creates a GskRenderNode that will draw a child with the given shadows below it.

Parameters:
  • child – The node to draw

  • shadows – The shadows to apply

Methods#

class ShadowNode
get_child() RenderNode#

Retrieves the child GskRenderNode of the shadow node.

get_n_shadows() int#

Retrieves the number of shadows in the node.

get_shadow(i: int) Shadow#

Retrieves the shadow data at the given index i.

Parameters:

i – the given index