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.