Shadow
Examples#
See these.
Shadow
#
Bases: Shape
Draws a shadow for a path
representing
the given material elevation
.
Note
The transparent_occluder
argument should
be True
if the occluding object is not opaque.
page
#
The page (of type Page
or PageView
) to which this control belongs to.
parent
#
parent: BaseControl | None
The direct ancestor(parent) of this control.
It defaults to None
and will only have a value when this control is mounted (added to the page tree).
The Page
control (which is the root of the tree) is an exception - it always has parent=None
.
path
#
path: list[PathElement] = field(default_factory=list)
The list of elements describing the path of this shape.
transparent_occluder
#
transparent_occluder: bool = False
Whether the occluding object is transparent (not opaque).
before_update
#
This method is called every time when this control is being updated.
Note
Make sure not to call/request an update()
here.