pub struct PredefinedMenuItem { /* private fields */ }
Expand description
A predefined (native) menu item which has a predfined behavior by the OS or by this crate.
Implementations§
Source§impl PredefinedMenuItem
impl PredefinedMenuItem
Sourcepub fn separator() -> PredefinedMenuItem
pub fn separator() -> PredefinedMenuItem
Separator menu item
Sourcepub fn copy(text: Option<&str>) -> PredefinedMenuItem
pub fn copy(text: Option<&str>) -> PredefinedMenuItem
Copy menu item
Sourcepub fn cut(text: Option<&str>) -> PredefinedMenuItem
pub fn cut(text: Option<&str>) -> PredefinedMenuItem
Cut menu item
Sourcepub fn paste(text: Option<&str>) -> PredefinedMenuItem
pub fn paste(text: Option<&str>) -> PredefinedMenuItem
Paste menu item
Sourcepub fn select_all(text: Option<&str>) -> PredefinedMenuItem
pub fn select_all(text: Option<&str>) -> PredefinedMenuItem
SelectAll menu item
Sourcepub fn undo(text: Option<&str>) -> PredefinedMenuItem
pub fn undo(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn redo(text: Option<&str>) -> PredefinedMenuItem
pub fn redo(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn minimize(text: Option<&str>) -> PredefinedMenuItem
pub fn minimize(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn maximize(text: Option<&str>) -> PredefinedMenuItem
pub fn maximize(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn fullscreen(text: Option<&str>) -> PredefinedMenuItem
pub fn fullscreen(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn hide(text: Option<&str>) -> PredefinedMenuItem
pub fn hide(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn hide_others(text: Option<&str>) -> PredefinedMenuItem
pub fn hide_others(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn show_all(text: Option<&str>) -> PredefinedMenuItem
pub fn show_all(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn close_window(text: Option<&str>) -> PredefinedMenuItem
pub fn close_window(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn quit(text: Option<&str>) -> PredefinedMenuItem
pub fn quit(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn about(
text: Option<&str>,
metadata: Option<AboutMetadata>,
) -> PredefinedMenuItem
pub fn about( text: Option<&str>, metadata: Option<AboutMetadata>, ) -> PredefinedMenuItem
About app menu item
Sourcepub fn services(text: Option<&str>) -> PredefinedMenuItem
pub fn services(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn bring_all_to_front(text: Option<&str>) -> PredefinedMenuItem
pub fn bring_all_to_front(text: Option<&str>) -> PredefinedMenuItem
Sourcepub fn id(&self) -> &MenuId
pub fn id(&self) -> &MenuId
Returns a unique identifier associated with this predefined menu item.
Trait Implementations§
Source§impl Clone for PredefinedMenuItem
impl Clone for PredefinedMenuItem
Source§fn clone(&self) -> PredefinedMenuItem
fn clone(&self) -> PredefinedMenuItem
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 IsMenuItem for PredefinedMenuItem
impl IsMenuItem for PredefinedMenuItem
Auto Trait Implementations§
impl Freeze for PredefinedMenuItem
impl !RefUnwindSafe for PredefinedMenuItem
impl !Send for PredefinedMenuItem
impl !Sync for PredefinedMenuItem
impl Unpin for PredefinedMenuItem
impl !UnwindSafe for PredefinedMenuItem
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