Struct egui::animation_manager::AnimationManager
source · pub(crate) struct AnimationManager {
bools: IdMap<BoolAnim>,
values: IdMap<ValueAnim>,
}
Fields§
§bools: IdMap<BoolAnim>
§values: IdMap<ValueAnim>
Implementations§
source§impl AnimationManager
impl AnimationManager
sourcepub fn animate_bool(
&mut self,
input: &InputState,
animation_time: f32,
id: Id,
value: bool,
) -> f32
pub fn animate_bool( &mut self, input: &InputState, animation_time: f32, id: Id, value: bool, ) -> f32
See crate::Context::animate_bool
for documentation
pub fn animate_value( &mut self, input: &InputState, animation_time: f32, id: Id, value: f32, ) -> f32
Trait Implementations§
source§impl Clone for AnimationManager
impl Clone for AnimationManager
source§fn clone(&self) -> AnimationManager
fn clone(&self) -> AnimationManager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for AnimationManager
impl Default for AnimationManager
source§fn default() -> AnimationManager
fn default() -> AnimationManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnimationManager
impl RefUnwindSafe for AnimationManager
impl Send for AnimationManager
impl Sync for AnimationManager
impl Unpin for AnimationManager
impl UnwindSafe for AnimationManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)