pub enum ToolbarOutcome {
Continue,
Unchanged,
Changed,
Pressed(usize),
Checked(usize, bool),
Selected(usize, usize),
}Expand description
Result type for event-handling.
Variants§
Continue
The given event was not handled at all.
Unchanged
The event was handled, no repaint necessary.
Changed
The event was handled, repaint necessary.
Pressed(usize)
Button N has been activated.
Checked(usize, bool)
Checkbox N has been checked/unchecked.
Selected(usize, usize)
Choice N has changed selection. (N, Selection)
Trait Implementations§
Source§impl ConsumedEvent for ToolbarOutcome
impl ConsumedEvent for ToolbarOutcome
Source§impl From<Outcome> for ToolbarOutcome
impl From<Outcome> for ToolbarOutcome
Source§impl From<ToolbarOutcome> for Outcome
impl From<ToolbarOutcome> for Outcome
Source§fn from(value: ToolbarOutcome) -> Self
fn from(value: ToolbarOutcome) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> HandleEvent<Event, ToolbarKeys<'_, N>, ToolbarOutcome> for ToolbarState
impl<const N: usize> HandleEvent<Event, ToolbarKeys<'_, N>, ToolbarOutcome> for ToolbarState
Source§fn handle(
&mut self,
event: &Event,
qualifier: ToolbarKeys<'_, N>,
) -> ToolbarOutcome
fn handle( &mut self, event: &Event, qualifier: ToolbarKeys<'_, N>, ) -> ToolbarOutcome
Handle an event. Read more
Auto Trait Implementations§
impl Freeze for ToolbarOutcome
impl RefUnwindSafe for ToolbarOutcome
impl Send for ToolbarOutcome
impl Sync for ToolbarOutcome
impl Unpin for ToolbarOutcome
impl UnwindSafe for ToolbarOutcome
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more