pub struct PointerBoundary {
pub x: Option<f32>,
pub y: Option<f32>,
pub captured: bool,
}Expand description
Data from a pointer enter / exit event.
Coordinates are populated when the event originates from a canvas
element (where they carry meaning) and None for widget-level
enter / exit (where they don’t).
Fields§
§x: Option<f32>X coordinate (canvas sources only).
y: Option<f32>Y coordinate (canvas sources only).
captured: boolWhether the event was consumed by a widget before reaching the global subscription layer.
Trait Implementations§
Source§impl Clone for PointerBoundary
impl Clone for PointerBoundary
Source§fn clone(&self) -> PointerBoundary
fn clone(&self) -> PointerBoundary
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 PointerBoundary
impl Debug for PointerBoundary
Source§impl Default for PointerBoundary
impl Default for PointerBoundary
Source§fn default() -> PointerBoundary
fn default() -> PointerBoundary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PointerBoundary
impl RefUnwindSafe for PointerBoundary
impl Send for PointerBoundary
impl Sync for PointerBoundary
impl Unpin for PointerBoundary
impl UnsafeUnpin for PointerBoundary
impl UnwindSafe for PointerBoundary
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