pub struct EventOutcome {
pub handled: bool,
pub needs_redraw: bool,
}Expand description
The result of a whole crate::app::RenderRoot::event pass.
handled is whether any widget consumed the event; needs_redraw is whether
the shell should schedule a repaint (a handled event or an explicit
EventCtx::request_redraw). The shell turns needs_redraw into a
window.request_redraw() — the event pass itself never rebuilds or repaints.
Fields§
§handled: boolWhether the event was consumed by the tree.
needs_redraw: boolWhether the shell should schedule a redraw as a result.
Trait Implementations§
Source§impl Clone for EventOutcome
impl Clone for EventOutcome
impl Copy for EventOutcome
Source§impl Debug for EventOutcome
impl Debug for EventOutcome
Source§impl Default for EventOutcome
impl Default for EventOutcome
impl Eq for EventOutcome
Source§impl PartialEq for EventOutcome
impl PartialEq for EventOutcome
impl StructuralPartialEq for EventOutcome
Auto Trait Implementations§
impl Freeze for EventOutcome
impl RefUnwindSafe for EventOutcome
impl Send for EventOutcome
impl Sync for EventOutcome
impl Unpin for EventOutcome
impl UnsafeUnpin for EventOutcome
impl UnwindSafe for EventOutcome
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.