pub struct TouchZoom {
slots: (TouchEvent, TouchEvent),
fractions: f32,
}
Expand description
Touch zooming state.
Fields§
§slots: (TouchEvent, TouchEvent)
§fractions: f32
Implementations§
source§impl TouchZoom
impl TouchZoom
pub fn new(slots: (TouchEvent, TouchEvent)) -> Self
sourcepub fn font_delta(&mut self, slot: TouchEvent) -> f32
pub fn font_delta(&mut self, slot: TouchEvent) -> f32
Get slot distance change since last update.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TouchZoom
impl Send for TouchZoom
impl Sync for TouchZoom
impl Unpin for TouchZoom
impl UnwindSafe for TouchZoom
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