Struct leptos_use::UseMouseReturn
source · pub struct UseMouseReturn {
pub x: Signal<f64>,
pub y: Signal<f64>,
pub set_x: WriteSignal<f64>,
pub set_y: WriteSignal<f64>,
pub source_type: Signal<UseMouseSourceType>,
}
Expand description
Return type of use_mouse
.
Fields§
§x: Signal<f64>
X coordinate of the mouse pointer / touch
y: Signal<f64>
Y coordinate of the mouse pointer / touch
set_x: WriteSignal<f64>
Sets the value of x
. This does not actually move the mouse cursor.
set_y: WriteSignal<f64>
Sets the value of y
. This does not actually move the mouse cursor.
source_type: Signal<UseMouseSourceType>
Identifies the source of the reported coordinates
Auto Trait Implementations§
impl Freeze for UseMouseReturn
impl !RefUnwindSafe for UseMouseReturn
impl !Send for UseMouseReturn
impl !Sync for UseMouseReturn
impl Unpin for UseMouseReturn
impl !UnwindSafe for UseMouseReturn
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more