pub enum UICommand {
Show 26 variants
Open,
Save,
SaveSelection,
CloseCurrentRecording,
Quit,
ResetViewer,
OpenProfiler,
ToggleMemoryPanel,
ToggleBlueprintPanel,
ToggleSelectionPanel,
ToggleTimePanel,
ToggleStylePanel,
ToggleFullscreen,
ZoomIn,
ZoomOut,
ZoomReset,
SelectionPrevious,
SelectionNext,
ToggleCommandPalette,
PlaybackTogglePlayPause,
PlaybackFollow,
PlaybackStepBack,
PlaybackStepForward,
PlaybackRestart,
ScreenshotWholeApp,
PrintDatastore,
}Expand description
All the commands we support.
Most are available in the GUI,
some have keyboard shortcuts,
and all are visible in the crate::CommandPalette.
Variants§
Open
Save
SaveSelection
CloseCurrentRecording
Quit
ResetViewer
OpenProfiler
ToggleMemoryPanel
ToggleBlueprintPanel
ToggleSelectionPanel
ToggleTimePanel
ToggleStylePanel
ToggleFullscreen
ZoomIn
ZoomOut
ZoomReset
SelectionPrevious
SelectionNext
ToggleCommandPalette
PlaybackTogglePlayPause
PlaybackFollow
PlaybackStepBack
PlaybackStepForward
PlaybackRestart
ScreenshotWholeApp
PrintDatastore
Implementations§
source§impl UICommand
impl UICommand
pub fn text(self) -> &'static str
pub fn tooltip(self) -> &'static str
pub fn text_and_tooltip(self) -> (&'static str, &'static str)
pub fn kb_shortcut(self) -> Option<KeyboardShortcut>
pub fn listen_for_kb_shortcut(egui_ctx: &Context) -> Option<UICommand>
Show this command as a menu-button.
If clicked, enqueue the command.
sourcepub fn format_shortcut_tooltip_suffix(self, egui_ctx: &Context) -> String
pub fn format_shortcut_tooltip_suffix(self, egui_ctx: &Context) -> String
Add e.g. “ (Ctrl+F11)“ as a suffix
pub fn tooltip_with_shortcut(self, egui_ctx: &Context) -> String
Trait Implementations§
source§impl IntoEnumIterator for UICommand
impl IntoEnumIterator for UICommand
source§impl PartialEq for UICommand
impl PartialEq for UICommand
impl Copy for UICommand
impl Eq for UICommand
impl StructuralEq for UICommand
impl StructuralPartialEq for UICommand
Auto Trait Implementations§
impl RefUnwindSafe for UICommand
impl Send for UICommand
impl Sync for UICommand
impl Unpin for UICommand
impl UnwindSafe for UICommand
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