pub enum Command {
Show 17 variants
Open,
Save,
SaveSelection,
Quit,
ResetViewer,
OpenProfiler,
ToggleMemoryPanel,
ToggleBlueprintPanel,
ToggleSelectionPanel,
ToggleTimePanel,
ToggleFullscreen,
SelectionPrevious,
SelectionNext,
ToggleCommandPalette,
PlaybackTogglePlayPause,
PlaybackStepBack,
PlaybackStepForward,
}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
Quit
ResetViewer
OpenProfiler
ToggleMemoryPanel
ToggleBlueprintPanel
ToggleSelectionPanel
ToggleTimePanel
ToggleFullscreen
SelectionPrevious
SelectionNext
ToggleCommandPalette
PlaybackTogglePlayPause
PlaybackStepBack
PlaybackStepForward
Implementations§
source§impl Command
impl Command
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<Command>
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