Expand description
egui-command — pure command model, no egui dependency.
Defines the core types for representing user-facing commands: their identity, specification (metadata), state, and trigger events.
§Architecture
egui-event (typed event bus)
↓
egui-command (this crate — command model)
↓
egui-command-binding (egui integration: shortcut → CommandId)
↓
app (AppCommand enum, business logic)Structs§
- Command
Id - Opaque command identifier. Wrap an enum variant (or a
u32) to make it comparable and hashable without storing strings at runtime. - Command
Registry - Registry that maps command identifiers to their specs and runtime states.
- Command
Spec - Human-readable metadata for a command.
- Command
Triggered - Event emitted when a command is triggered.
Enums§
- Command
Source - What produced a
CommandTriggeredevent. - Command
State - Runtime availability state of a command.