pub struct AnimatedObjectOptions {
pub settle_check: Wire,
pub snap: Option<Wire>,
pub settle_distance: f64,
pub settle_speed: f64,
}Fields§
§settle_check: WireAn exact bit: 1 when this evaluation ends at a fixed simulated settle time
(PlannedEvaluation::settle_check). The object only
settles then, so settling doesn’t depend on the frame rate.
snap: Option<Wire>An exact bit that pins every spring onto its destination with zero velocity, e.g. while dragging, or a planned snap.
settle_distance: f64Settle thresholds, 0.01 px and 0.01 px/s by default; each at least 2^-22.
settle_speed: f64Implementations§
Source§impl AnimatedObjectOptions
impl AnimatedObjectOptions
pub fn new(settle_check: Wire) -> AnimatedObjectOptions
Trait Implementations§
Source§impl Clone for AnimatedObjectOptions
impl Clone for AnimatedObjectOptions
impl Copy for AnimatedObjectOptions
Auto Trait Implementations§
impl Freeze for AnimatedObjectOptions
impl RefUnwindSafe for AnimatedObjectOptions
impl Send for AnimatedObjectOptions
impl Sync for AnimatedObjectOptions
impl Unpin for AnimatedObjectOptions
impl UnsafeUnpin for AnimatedObjectOptions
impl UnwindSafe for AnimatedObjectOptions
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