pub enum CommandPlacement {
Show 22 variants
AppInfo,
AppSettings,
AppShortcuts,
AppSpecificSettings,
AppTermination,
AppVisibility,
Help,
ImportExport,
NewItem,
Pasteboard,
PrintItem,
SaveItem,
Sidebar,
SingleWindowList,
SystemServices,
TextEditing,
TextFormatting,
Toolbar,
UndoRedo,
WindowArrangement,
WindowList,
WindowSize,
}Expand description
Where in the standard menu bar a command_group goes.
The twenty-one placements SwiftUI exports, each a static property of
CommandGroupPlacement read through its own getter rather than a number
written down — the type is resilient and its layout is not API.
Variants§
AppInfo
AppSettings
AppShortcuts
AppSpecificSettings
AppTermination
AppVisibility
Help
ImportExport
NewItem
Pasteboard
PrintItem
SaveItem
Sidebar
SingleWindowList
SystemServices
TextEditing
TextFormatting
Toolbar
UndoRedo
WindowArrangement
WindowList
WindowSize
Trait Implementations§
Source§impl Clone for CommandPlacement
impl Clone for CommandPlacement
impl Copy for CommandPlacement
Source§impl Debug for CommandPlacement
impl Debug for CommandPlacement
impl Eq for CommandPlacement
Source§impl PartialEq for CommandPlacement
impl PartialEq for CommandPlacement
impl StructuralPartialEq for CommandPlacement
Auto Trait Implementations§
impl Freeze for CommandPlacement
impl RefUnwindSafe for CommandPlacement
impl Send for CommandPlacement
impl Sync for CommandPlacement
impl Unpin for CommandPlacement
impl UnsafeUnpin for CommandPlacement
impl UnwindSafe for CommandPlacement
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