Skip to main content

Crate egui_command

Crate egui_command 

Source
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§

CommandId
Opaque command identifier. Wrap an enum variant (or a u32) to make it comparable and hashable without storing strings at runtime.
CommandSpec
Human-readable metadata for a command.
CommandTriggered
Event emitted when a command is triggered.

Enums§

CommandSource
What produced a CommandTriggered event.
CommandState
Runtime availability state of a command.