pub struct UseMouseOptions<El, M, Ex>{ /* private fields */ }
Expand description
Options for use_mouse_with_options
.
Implementations§
Source§impl<El, M, Ex> UseMouseOptions<El, M, Ex>
impl<El, M, Ex> UseMouseOptions<El, M, Ex>
Sourcepub fn coord_type<New__Ex>(
self,
value: UseMouseCoordType<New__Ex>,
) -> UseMouseOptions<El, M, New__Ex>
pub fn coord_type<New__Ex>( self, value: UseMouseCoordType<New__Ex>, ) -> UseMouseOptions<El, M, New__Ex>
How to extract the x, y coordinates from mouse events or touches
Sourcepub fn target<New__El, New__M>(
self,
value: New__El,
) -> UseMouseOptions<New__El, New__M, Ex>
pub fn target<New__El, New__M>( self, value: New__El, ) -> UseMouseOptions<New__El, New__M, Ex>
Listen events on target
element. Defaults to window
Sourcepub fn reset_on_touch_ends(self, value: bool) -> Self
pub fn reset_on_touch_ends(self, value: bool) -> Self
Reset to initial value when touchend
event fired. Defaults to false
Sourcepub fn initial_value(self, value: Position) -> Self
pub fn initial_value(self, value: Position) -> Self
Initial values. Defaults to {x: 0.0, y: 0.0}
.
Trait Implementations§
Source§impl<M> Default for UseMouseOptions<UseWindow, M, Infallible>
impl<M> Default for UseMouseOptions<UseWindow, M, Infallible>
Auto Trait Implementations§
impl<El, M, Ex> Freeze for UseMouseOptions<El, M, Ex>
impl<El, M, Ex> RefUnwindSafe for UseMouseOptions<El, M, Ex>
impl<El, M, Ex> Send for UseMouseOptions<El, M, Ex>
impl<El, M, Ex> Sync for UseMouseOptions<El, M, Ex>
impl<El, M, Ex> Unpin for UseMouseOptions<El, M, Ex>
impl<El, M, Ex> UnwindSafe for UseMouseOptions<El, M, Ex>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
Marker: ?Sized,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
Marker: ?Sized,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.