Struct fltk::menu::MacAppMenu
source · pub struct MacAppMenu;
Expand description
Wrapper around Fl_Mac_App_Menu which exposes several static methods allowing the customization of the default system menu bar for the fltk application
Implementations§
source§impl MacAppMenu
impl MacAppMenu
sourcepub fn set_print_no_titlebar(print_no_titlebar: &'static str)
pub fn set_print_no_titlebar(print_no_titlebar: &'static str)
Sets the print no titlebar text
sourcepub fn set_toggle_print_titlebar(toggle_print_titlebar: &'static str)
pub fn set_toggle_print_titlebar(toggle_print_titlebar: &'static str)
Sets the toggle print titlebar text
sourcepub fn set_services(services: &'static str)
pub fn set_services(services: &'static str)
Sets the services text
sourcepub fn set_hide_others(hide_others: &'static str)
pub fn set_hide_others(hide_others: &'static str)
Sets the hide others text
Adds custom menu items to the application menu of the system menu bar. They are positioned after the “Print Front Window / Toggle printing of titlebar” items, or at their place if an item is removed by providing empty text
Trait Implementations§
source§impl Clone for MacAppMenu
impl Clone for MacAppMenu
source§fn clone(&self) -> MacAppMenu
fn clone(&self) -> MacAppMenu
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 Debug for MacAppMenu
impl Debug for MacAppMenu
impl Copy for MacAppMenu
Auto Trait Implementations§
impl RefUnwindSafe for MacAppMenu
impl Send for MacAppMenu
impl Sync for MacAppMenu
impl Unpin for MacAppMenu
impl UnwindSafe for MacAppMenu
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