pub struct LongPressMoveUpdateDetails {
pub global_position: Offset,
pub local_position: Offset,
pub offset_from_origin: Offset,
pub local_offset_from_origin: Offset,
}Expand description
The gesture recognizers and the details their callbacks carry, which a GestureDetector
takes: Flutter’s package:flutter/gestures.dart, which its widget library imports rather than
re-exports.
Details for callbacks that use GestureLongPressMoveUpdateCallback.
Fields§
§global_position: OffsetThe global position at which the pointer contacted the screen.
local_position: OffsetThe local position at which the pointer contacted the screen.
offset_from_origin: OffsetA delta offset from the point where the long press drag initially contacted the screen to the point where the pointer is currently located.
local_offset_from_origin: OffsetA local delta offset from the initial contact point to the current
local_position.
Implementations§
Trait Implementations§
Source§impl Default for LongPressMoveUpdateDetails
impl Default for LongPressMoveUpdateDetails
Source§fn default() -> LongPressMoveUpdateDetails
fn default() -> LongPressMoveUpdateDetails
Returns the “default value” for a type. Read more
Source§impl PositionedGestureDetails for LongPressMoveUpdateDetails
impl PositionedGestureDetails for LongPressMoveUpdateDetails
Source§fn global_position(&self) -> Offset
fn global_position(&self) -> Offset
The global position at which the pointer interacts with the screen. Read more
Source§fn local_position(&self) -> Offset
fn local_position(&self) -> Offset
The local position in the coordinate system of the event receiver at
which the pointer interacts with the screen. Read more
Auto Trait Implementations§
impl Forget for LongPressMoveUpdateDetails
impl Freeze for LongPressMoveUpdateDetails
impl Move for LongPressMoveUpdateDetails
impl RefUnwindSafe for LongPressMoveUpdateDetails
impl Send for LongPressMoveUpdateDetails
impl Sync for LongPressMoveUpdateDetails
impl Unpin for LongPressMoveUpdateDetails
impl UnsafeUnpin for LongPressMoveUpdateDetails
impl UnwindSafe for LongPressMoveUpdateDetails
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.