pub fn enables_animations(widget: &impl IsA<Widget>) -> bool
Expand description

Checks whether animations are enabled for @widget.

This should be used when implementing an animated widget to know whether to animate it or not.

widget

a widget

Returns

whether animations are enabled for @widget