From 890d852e0544ffbf06ac7eb8c3904dc04a0008cf Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 27 Jan 2025 05:01:24 +0100 Subject: Implement `Animation::value` --- core/src/animation.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/src') diff --git a/core/src/animation.rs b/core/src/animation.rs index eae6785e..fe2b29b2 100644 --- a/core/src/animation.rs +++ b/core/src/animation.rs @@ -95,6 +95,11 @@ where { self.raw.animate(f, at) } + + /// Retuns the current state of the [`Animation`]. + pub fn value(&self) -> T { + self.raw.value + } } impl Animation { -- cgit