summaryrefslogtreecommitdiffstats
path: root/core/src/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/animation.rs')
-rw-r--r--core/src/animation.rs5
1 files changed, 5 insertions, 0 deletions
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<bool> {