pub struct GestureRecognizer { /* private fields */ }Expand description
Pointer gesture recognizer.
Implementations§
Source§impl GestureRecognizer
impl GestureRecognizer
Sourcepub fn set_config(
&self,
tap_max_distance: f32,
tap_max_duration: f32,
swipe_min_distance: f32,
long_press_duration: f32,
double_tap_max_interval: f32,
)
pub fn set_config( &self, tap_max_distance: f32, tap_max_duration: f32, swipe_min_distance: f32, long_press_duration: f32, double_tap_max_interval: f32, )
Set custom thresholds.
Sourcepub fn pointer_down(&self, x: f32, y: f32, pointer_id: u32, time_seconds: f32)
pub fn pointer_down(&self, x: f32, y: f32, pointer_id: u32, time_seconds: f32)
Pointer down at timestamp seconds.
Trait Implementations§
Source§impl Clone for GestureRecognizer
impl Clone for GestureRecognizer
Source§fn clone(&self) -> GestureRecognizer
fn clone(&self) -> GestureRecognizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GestureRecognizer
impl Debug for GestureRecognizer
Source§impl Default for GestureRecognizer
impl Default for GestureRecognizer
Source§impl From<GestureRecognizer> for JsValue
impl From<GestureRecognizer> for JsValue
Source§fn from(value: GestureRecognizer) -> Self
fn from(value: GestureRecognizer) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GestureRecognizer
impl FromWasmAbi for GestureRecognizer
Source§impl IntoWasmAbi for GestureRecognizer
impl IntoWasmAbi for GestureRecognizer
Source§impl LongRefFromWasmAbi for GestureRecognizer
impl LongRefFromWasmAbi for GestureRecognizer
Source§type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<GestureRecognizer>
type Anchor = RcRef<GestureRecognizer>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for GestureRecognizer
impl RefFromWasmAbi for GestureRecognizer
Source§type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<GestureRecognizer>
type Anchor = RcRef<GestureRecognizer>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for GestureRecognizer
impl RefMutFromWasmAbi for GestureRecognizer
Source§type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
type Abi = WasmPtr<WasmRefCell<GestureRecognizer>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<GestureRecognizer>
type Anchor = RcRefMut<GestureRecognizer>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for GestureRecognizer
impl TryFromJsValue for GestureRecognizer
Source§impl VectorFromWasmAbi for GestureRecognizer
impl VectorFromWasmAbi for GestureRecognizer
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GestureRecognizer]>
Source§impl VectorIntoWasmAbi for GestureRecognizer
impl VectorIntoWasmAbi for GestureRecognizer
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GestureRecognizer]>) -> Self::Abi
Source§impl WasmDescribeVector for GestureRecognizer
impl WasmDescribeVector for GestureRecognizer
impl SupportsConstructor for GestureRecognizer
impl SupportsInstanceProperty for GestureRecognizer
impl SupportsStaticProperty for GestureRecognizer
Auto Trait Implementations§
impl Freeze for GestureRecognizer
impl RefUnwindSafe for GestureRecognizer
impl Send for GestureRecognizer
impl Sync for GestureRecognizer
impl Unpin for GestureRecognizer
impl UnsafeUnpin for GestureRecognizer
impl UnwindSafe for GestureRecognizer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.