pub struct PopupMountRouteOutcome { /* private fields */ }Expand description
Result of routing an event through the retained popup overlay.
popup_id names the local mount receiving dispatch, if any. consumed
tells the host not to route the same event into owner-window content; the
nested RouteOutcome independently reports interaction/dispatch effects.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountRouteOutcome;
let outcome = PopupMountRouteOutcome::default();
assert_eq!(outcome.popup_id(), None);
assert!(!outcome.consumed());Implementations§
Source§impl PopupMountRouteOutcome
Observation and redraw interpretation for mount routing.
impl PopupMountRouteOutcome
Observation and redraw interpretation for mount routing.
Sourcepub const fn popup_id(&self) -> Option<PopupId>
pub const fn popup_id(&self) -> Option<PopupId>
Returns the popup selected for local dispatch, if any.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountRouteOutcome;
assert!(PopupMountRouteOutcome::default().popup_id().is_none());Sourcepub const fn consumed(&self) -> bool
pub const fn consumed(&self) -> bool
Whether owner-window content must not receive this event.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountRouteOutcome;
assert!(!PopupMountRouteOutcome::default().consumed());Sourcepub const fn route(&self) -> &RouteOutcome
pub const fn route(&self) -> &RouteOutcome
Borrows aggregated popup-local router effects.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountRouteOutcome;
assert!(!PopupMountRouteOutcome::default().route().event_dispatched);Sourcepub fn needs_redraw(&self) -> bool
pub fn needs_redraw(&self) -> bool
Requests redraw when the overlay consumed input or interaction changed.
Event dispatch alone does not imply redraw unless it was also consumed.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountRouteOutcome;
assert!(!PopupMountRouteOutcome::default().needs_redraw());Trait Implementations§
Source§impl Clone for PopupMountRouteOutcome
impl Clone for PopupMountRouteOutcome
Source§fn clone(&self) -> PopupMountRouteOutcome
fn clone(&self) -> PopupMountRouteOutcome
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 PopupMountRouteOutcome
impl Debug for PopupMountRouteOutcome
Source§impl Default for PopupMountRouteOutcome
impl Default for PopupMountRouteOutcome
Source§fn default() -> PopupMountRouteOutcome
fn default() -> PopupMountRouteOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupMountRouteOutcome
impl PartialEq for PopupMountRouteOutcome
impl Eq for PopupMountRouteOutcome
impl StructuralPartialEq for PopupMountRouteOutcome
Auto Trait Implementations§
impl Freeze for PopupMountRouteOutcome
impl RefUnwindSafe for PopupMountRouteOutcome
impl Send for PopupMountRouteOutcome
impl Sync for PopupMountRouteOutcome
impl Unpin for PopupMountRouteOutcome
impl UnwindSafe for PopupMountRouteOutcome
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.