Struct leptos_use::UseMouseInElementReturn
source · pub struct UseMouseInElementReturn<F>{
pub x: Signal<f64>,
pub y: Signal<f64>,
pub source_type: Signal<UseMouseSourceType>,
pub element_x: Signal<f64>,
pub element_y: Signal<f64>,
pub element_position_x: Signal<f64>,
pub element_position_y: Signal<f64>,
pub element_width: Signal<f64>,
pub element_height: Signal<f64>,
pub is_outside: Signal<bool>,
pub stop: F,
}Expand description
Return type of use_mouse_in_element.
Fields§
§x: Signal<f64>X coordinate of the mouse pointer / touch
y: Signal<f64>Y coordinate of the mouse pointer / touch
source_type: Signal<UseMouseSourceType>Identifies the source of the reported coordinates
element_x: Signal<f64>X coordinate of the pointer relative to the left edge of the element
element_y: Signal<f64>Y coordinate of the pointer relative to the top edge of the element
element_position_x: Signal<f64>X coordinate of the element relative to the left edge of the document
element_position_y: Signal<f64>Y coordinate of the element relative to the top edge of the document
element_width: Signal<f64>Width of the element
element_height: Signal<f64>Height of the element
is_outside: Signal<bool>true if the mouse is outside of the element
stop: FStop watching
Auto Trait Implementations§
impl<F> Freeze for UseMouseInElementReturn<F>where
F: Freeze,
impl<F> !RefUnwindSafe for UseMouseInElementReturn<F>
impl<F> !Send for UseMouseInElementReturn<F>
impl<F> !Sync for UseMouseInElementReturn<F>
impl<F> Unpin for UseMouseInElementReturn<F>where
F: Unpin,
impl<F> !UnwindSafe for UseMouseInElementReturn<F>
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