pub enum CommandId {
Show 39 variants
Arm(ToolName),
Undo,
Redo,
Copy,
Cut,
ExportSelection(ExportFormat),
HideTags,
ShowTags,
Rename,
RenameType,
Retype,
RenameTag,
EditText,
FlipLr,
FlipUd,
PinType,
Accent,
Reroute,
ToggleDiagnostic,
ToggleFrameRate,
SetAccent(Option<u8>),
SetPinDir(PinDir),
AddRouteLabel,
ExpandBlock,
GoUp,
ZoomIn,
ZoomOut,
FitView,
Lock,
Unlock,
AddIcon,
AddImage,
RerouteBlock,
Delete,
Export(ExportFormat),
Import,
Save,
Search,
Nudge(Heading),
}Expand description
Stable identity of one invocable operation.
Variants§
Arm(ToolName)
Arm a toolbar tool.
Undo
Redo
Copy
Cut
ExportSelection(ExportFormat)
Export the current selection as a standalone diagram.
HideTags
ShowTags
Rename
Open the in-place editor on the selection’s primary label — a shape’s title, or a pin/port’s name.
RenameType
Open the in-place editor on a block’s type label.
Retype
Open the in-place editor on a pin/port’s type label.
RenameTag
Open the in-place editor on a pin/port’s tag.
EditText
Open a text box’s in-place editor.
FlipLr
FlipUd
PinType
Open the pin-type (I/O) picker for the selected pins.
Accent
Open the accent-color picker for the selection.
Reroute
ToggleDiagnostic
Toggle the author’s diagnostic overlay: what the selection raises, the bound the regional router heals it in, and the lattice there. Dev tooling, reachable only by name.
ToggleFrameRate
Toggle the frame-rate readout: frames in the last second, and what the last frame spent in the kernel and on the canvas. Dev tooling, reachable only by name.
SetAccent(Option<u8>)
One accent value, by name — the picker’s cells as commands.
SetPinDir(PinDir)
One I/O direction, by name.
AddRouteLabel
ExpandBlock
GoUp
ZoomIn
ZoomOut
FitView
Frame the whole level in view — the double-click gesture, by name.
Lock
Unlock
AddIcon
AddImage
Pick artwork to place as an image of its own — the rail’s image cell, which arms no tool because there is none to arm.
RerouteBlock
Delete
Export(ExportFormat)
Export the current view.
Import
Save
Write the log, through the rev on the canvas, somewhere of its own.
Search
Open the front end’s search — the ⌘K palette of docs/cad-ui-spec.md
§9. It draws no control of its own: the chord and the palette are its
two doors, and which of them is open is the shell’s own state.
Nudge(Heading)
Move the selection one grid cell — or a pin group one slot — the way an arrow key points.
Implementations§
Source§impl CommandId
impl CommandId
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The stable spelling consumers type: the palette matches against it, and the planned shortcut table names commands by it.
Sourcefn writes_the_document(self) -> bool
fn writes_the_document(self) -> bool
Whether invoking this command writes the document — the one list a read-only session withholds, so an editing command is uninvocable there rather than offered and refused. Arming an editing tool counts: a tool that cannot commit what it draws is a worse answer than a button drawn dead, which is what the toolbar shows instead.
Going up a level is navigation and stays — wholly, now that its one writing arm (wrapping the document when there is nowhere above to go) is gone; at the root the command is simply not offered.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommandId
impl<'de> Deserialize<'de> for CommandId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for CommandId
impl Eq for CommandId
impl StructuralPartialEq for CommandId
Auto Trait Implementations§
impl Freeze for CommandId
impl RefUnwindSafe for CommandId
impl Send for CommandId
impl Sync for CommandId
impl Unpin for CommandId
impl UnsafeUnpin for CommandId
impl UnwindSafe for CommandId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more