pub struct TouchGesture {
pub scrolled_at: f64,
/* private fields */
}Fields§
§scrolled_at: f64Implementations§
Source§impl TouchGesture
impl TouchGesture
pub fn new() -> Self
pub fn reset_scrolled_at(&mut self)
pub fn set_mode(&mut self, scroll_mode: ScrollMode)
pub fn set_range(&mut self, min_offset: f64, max_offset: f64)
pub fn stop(&mut self)
pub fn is_stopped(&self) -> bool
pub fn is_dragging(&self) -> bool
pub fn handle_event( &mut self, cx: &mut Cx, event: &Event, area: Area, ) -> TouchMotionChange
Trait Implementations§
Source§impl Clone for TouchGesture
impl Clone for TouchGesture
Source§fn clone(&self) -> TouchGesture
fn clone(&self) -> TouchGesture
Returns a duplicate 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 TouchGesture
impl Default for TouchGesture
Source§fn default() -> TouchGesture
fn default() -> TouchGesture
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TouchGesture
impl RefUnwindSafe for TouchGesture
impl Send for TouchGesture
impl Sync for TouchGesture
impl Unpin for TouchGesture
impl UnwindSafe for TouchGesture
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