pub enum OsAction {
Show 27 variants
Cut,
Copy,
Paste,
SelectAll,
Undo,
Redo,
About,
HideApplication,
HideOtherApplications,
ShowAllApplications,
Quit,
CloseWindow,
MinimizeWindow,
ZoomWindow,
ToggleFullscreen,
BringAllToFront,
ShowHelp,
PasteAndMatchStyle,
Delete,
StartSpeaking,
StopSpeaking,
SelectNextTab,
SelectPreviousTab,
MergeAllWindows,
MoveTabToNewWindow,
ToggleTabBar,
ToggleTabOverview,
}Expand description
Commands that should first follow the operating system’s native responder chain.
If no native responder accepts the selector, QuickGUI falls back to dispatching the associated typed action through the focused retained tree. This makes one Edit menu work for both embedded NSView controls and GPU-rendered QuickGUI inputs.
Variants§
Cut
Copy
Paste
SelectAll
Undo
Redo
About
Show the application’s native About panel where the operating system provides one.
HideApplication
Hide every window belonging to this application.
HideOtherApplications
Hide other applications while keeping this application visible.
ShowAllApplications
Reveal applications hidden through the native application menu.
Quit
Request orderly application termination.
CloseWindow
Close the active window through its ordinary close policy.
MinimizeWindow
Minimize the active window.
ZoomWindow
Toggle the active window’s native zoom/maximized state.
ToggleFullscreen
Toggle borderless/native fullscreen for the active window.
BringAllToFront
Bring the application’s windows to the front.
ShowHelp
Open the operating system’s application help UI where available.
PasteAndMatchStyle
Paste the clipboard’s plain text without its original styling.
Delete
Delete the current selection without writing it to the clipboard.
StartSpeaking
Start the operating system’s speech synthesis for the current selection.
StopSpeaking
Stop the operating system’s speech synthesis.
SelectNextTab
Select the next native window tab.
SelectPreviousTab
Select the previous native window tab.
MergeAllWindows
Merge every window of this application into one native tab group.
MoveTabToNewWindow
Move the active native tab into its own window.
ToggleTabBar
Toggle the native tab bar for the active window.
ToggleTabOverview
Toggle the native tab overview for the active window.
Implementations§
Trait Implementations§
impl Copy for OsAction
impl Eq for OsAction
impl StructuralPartialEq for OsAction
Auto Trait Implementations§
impl Freeze for OsAction
impl RefUnwindSafe for OsAction
impl Send for OsAction
impl Sync for OsAction
impl Unpin for OsAction
impl UnsafeUnpin for OsAction
impl UnwindSafe for OsAction
Blanket Implementations§
impl<T> Action 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.