pub struct PointerMove {
pub events: Vec<UiEvent>,
pub needs_redraw: bool,
}Expand description
Outcome of a pointer-move dispatch through
[RunnerCore::pointer_moved] (or its backend wrappers).
Wayland and most X11 compositors deliver CursorMoved at very
high frequency while the cursor sits over the surface — even
sub-pixel jitter or per-frame compositor sync ticks count as
movement. The vast majority of those moves are visual no-ops
(the hovered node didn’t change, no drag is active, no scrollbar
is dragging), so hosts must gate request_redraw on
needs_redraw to avoid spinning the rebuild + layout + render
pipeline on every cursor sample.
Fields§
§events: Vec<UiEvent>Events to dispatch through App::on_event. Empty when the
move didn’t trigger a Drag or selection update.
needs_redraw: booltrue when the runtime’s visual state changed enough to
warrant a redraw — hovered identity changed, scrollbar drag
updated a scroll offset, or events is non-empty.
Trait Implementations§
Source§impl Debug for PointerMove
impl Debug for PointerMove
Source§impl Default for PointerMove
impl Default for PointerMove
Source§fn default() -> PointerMove
fn default() -> PointerMove
Auto Trait Implementations§
impl Freeze for PointerMove
impl RefUnwindSafe for PointerMove
impl Send for PointerMove
impl Sync for PointerMove
impl Unpin for PointerMove
impl UnsafeUnpin for PointerMove
impl UnwindSafe for PointerMove
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.