pub struct RouteOutcome {
pub interaction_changed: bool,
pub event_dispatched: bool,
}Expand description
Observable result of routing one provider-neutral event.
Dispatch and visual interaction changes are independent: a keyboard event can dispatch without requiring redraw, while stale hover cleanup can redraw without dispatching the incoming event.
§Examples
use ailloli_ui_runtime::input::RouteOutcome;
let outcome = RouteOutcome { interaction_changed: true, event_dispatched: false };
assert!(outcome.needs_redraw());Fields§
§interaction_changed: boolWhether focus/hover/press/role or popup visual state changed.
event_dispatched: boolWhether the event was delivered or consumed by an authority.
Implementations§
Source§impl RouteOutcome
Host redraw interpretation for routed outcomes.
impl RouteOutcome
Host redraw interpretation for routed outcomes.
Sourcepub fn needs_redraw(&self) -> bool
pub fn needs_redraw(&self) -> bool
Returns exactly interaction_changed.
Widget-triggered runtime invalidation is tracked separately and may
require redraw even when this returns false.
§Examples
use ailloli_ui_runtime::input::RouteOutcome;
assert!(!RouteOutcome { interaction_changed: false, event_dispatched: true }.needs_redraw());Trait Implementations§
Source§impl Clone for RouteOutcome
impl Clone for RouteOutcome
Source§fn clone(&self) -> RouteOutcome
fn clone(&self) -> RouteOutcome
Returns a copy of the value. Read more
1.0.0 · 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 RouteOutcome
impl Debug for RouteOutcome
Source§impl Default for RouteOutcome
impl Default for RouteOutcome
Source§fn default() -> RouteOutcome
fn default() -> RouteOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for RouteOutcome
impl PartialEq for RouteOutcome
impl Eq for RouteOutcome
impl StructuralPartialEq for RouteOutcome
Auto Trait Implementations§
impl Freeze for RouteOutcome
impl RefUnwindSafe for RouteOutcome
impl Send for RouteOutcome
impl Sync for RouteOutcome
impl Unpin for RouteOutcome
impl UnwindSafe for RouteOutcome
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.