summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 05:01:24 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 05:01:24 +0100
commit890d852e0544ffbf06ac7eb8c3904dc04a0008cf (patch)
treed413ed734fa955a882e01b1d32c2ce1eb0271195 /core/src
parentbf600a0811649392008927578afc32a18a93de34 (diff)
downloadiced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.tar.gz
iced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.tar.bz2
iced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.zip
Implement `Animation::value`
Diffstat (limited to 'core/src')
-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> {