pub enum MenuRole {
Show 14 variants
Cut,
Copy,
Paste,
SelectAll,
Undo,
Redo,
Delete,
About,
Quit,
Preferences,
Minimize,
CloseWindow,
Fullscreen,
NewWindow,
}Expand description
A standard/system command. The backend supplies the NATIVE item — selector on AppKit/UIKit
(cut:/copy:/paste:…), a stock action on GTK/Qt/XAML — so it targets the focused control,
gets the platform’s default label + shortcut, and enables/disables itself automatically. This is
how default items (Edit ▸ Cut/Copy/Paste, the app’s Quit/About) are accommodated without the app
re-implementing them.
Variants§
Cut
Copy
Paste
SelectAll
Undo
Redo
Delete
About
Quit
Preferences
Minimize
CloseWindow
Fullscreen
NewWindow
File ▸ New Window (docs/windows.md): opens another window through the builder the
app registered with day::register_new_window. No platform has a native selector
for it, so the item lowers to the registered dispatch action (disabled when none).
Trait Implementations§
impl Copy for MenuRole
impl Eq for MenuRole
impl StructuralPartialEq for MenuRole
Auto Trait Implementations§
impl Freeze for MenuRole
impl RefUnwindSafe for MenuRole
impl Send for MenuRole
impl Sync for MenuRole
impl Unpin for MenuRole
impl UnsafeUnpin for MenuRole
impl UnwindSafe for MenuRole
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Checks if this value is equivalent to the given key. Read more
§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<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