Enum rat_widget::menuline::MenuOutcome
source · pub enum MenuOutcome {
Continue,
Unchanged,
Changed,
Selected(usize),
Activated(usize),
MenuSelected(usize, usize),
MenuActivated(usize, usize),
}Expand description
Outcome for menuline.
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.
Selected(usize)
The menuitem was selected.
Activated(usize)
The menuitem was selected and activated.
MenuSelected(usize, usize)
Selected popup-menu.
MenuActivated(usize, usize)
Activated popup-menu.
Trait Implementations§
source§impl Clone for MenuOutcome
impl Clone for MenuOutcome
source§fn clone(&self) -> MenuOutcome
fn clone(&self) -> MenuOutcome
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 ConsumedEvent for MenuOutcome
impl ConsumedEvent for MenuOutcome
source§impl Debug for MenuOutcome
impl Debug for MenuOutcome
source§impl From<MenuOutcome> for Outcome
impl From<MenuOutcome> for Outcome
source§fn from(value: MenuOutcome) -> Self
fn from(value: MenuOutcome) -> Self
Converts to this type from the input type.
source§impl HandleEvent<Event, MouseOnly, MenuOutcome> for MenuBarState
impl HandleEvent<Event, MouseOnly, MenuOutcome> for MenuBarState
source§impl HandleEvent<Event, MouseOnly, MenuOutcome> for MenuLineState
impl HandleEvent<Event, MouseOnly, MenuOutcome> for MenuLineState
source§impl HandleEvent<Event, MouseOnly, MenuOutcome> for PopupMenuState
impl HandleEvent<Event, MouseOnly, MenuOutcome> for PopupMenuState
source§impl HandleEvent<Event, Popup, MenuOutcome> for MenuBarState
impl HandleEvent<Event, Popup, MenuOutcome> for MenuBarState
source§impl HandleEvent<Event, Popup, MenuOutcome> for PopupMenuState
impl HandleEvent<Event, Popup, MenuOutcome> for PopupMenuState
source§impl HandleEvent<Event, Regular, MenuOutcome> for MenuBarState
impl HandleEvent<Event, Regular, MenuOutcome> for MenuBarState
source§impl HandleEvent<Event, Regular, MenuOutcome> for MenuLineState
impl HandleEvent<Event, Regular, MenuOutcome> for MenuLineState
source§impl PartialEq for MenuOutcome
impl PartialEq for MenuOutcome
impl Copy for MenuOutcome
impl Eq for MenuOutcome
impl StructuralPartialEq for MenuOutcome
Auto Trait Implementations§
impl Freeze for MenuOutcome
impl RefUnwindSafe for MenuOutcome
impl Send for MenuOutcome
impl Sync for MenuOutcome
impl Unpin for MenuOutcome
impl UnwindSafe for MenuOutcome
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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