rusty_desktop_icons.Duration¶
- class rusty_desktop_icons.Duration¶
Duration policy for an animation.
Build with one of the classmethod constructors:
Duration.fixed(seconds=1.0) Duration.distance(speed_px_per_sec=250.0) Duration.distance_clamped( speed_px_per_sec=250.0, min_seconds=0.15, max_seconds=1.5, )
- classmethod distance(speed_px_per_sec: float) Duration¶
Duration derived from movement distance and a constant speed.
- classmethod distance_clamped(speed_px_per_sec: float, min_seconds: float, max_seconds: float) Duration¶
Duration derived from distance and speed, clamped to [min_seconds, max_seconds].
- property kind: rusty_desktop_icons._enums.DurationKind¶
Duration representation, compatible with the legacy string discriminator.