diff options
author | 2025-01-27 05:01:24 +0100 | |
---|---|---|
committer | 2025-01-27 05:01:24 +0100 | |
commit | 890d852e0544ffbf06ac7eb8c3904dc04a0008cf (patch) | |
tree | d413ed734fa955a882e01b1d32c2ce1eb0271195 /core/src | |
parent | bf600a0811649392008927578afc32a18a93de34 (diff) | |
download | iced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.tar.gz iced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.tar.bz2 iced-890d852e0544ffbf06ac7eb8c3904dc04a0008cf.zip |
Implement `Animation::value`
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/animation.rs | 5 |
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> { |