mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-10 04:19:59 -06:00
* chore(clippy): enforce workspace Rust quality gates * refactor(doc): use explicit entity imports * refactor(constraints): split residual evaluation * refactor(fonts): split mtext layout * refactor(render): use explicit entity imports * fix(fonts): retain height for empty paragraphs * fix(doc): repair dimension and dynamic block links * refactor(render): split entity drawing helpers * docs: document workspace lint inheritance * refactor(render): isolate dimension geometry * refactor(engine): use explicit imports * refactor(engine): split complex edit paths into helpers * refactor(io): split DXF read and write helpers * refactor(ui): split canvas interaction and drawing * refactor(ui): split command and drawing helpers * test(i18n): split locale preference checks * fix(ui): use current egui scope id API * fix(dim): preserve text offset and ellipse grip behavior
17 lines
466 B
Rust
17 lines
466 B
Rust
use super::{Arc, Drawing, Handle, Interactive, Serialize, Vec2};
|
|
|
|
/// An interactive command in progress.
|
|
pub struct Running {
|
|
pub id: String,
|
|
pub machine: Box<dyn Interactive>,
|
|
pub before: Arc<Drawing>,
|
|
pub selection_before: Vec<Handle>,
|
|
}
|
|
|
|
/// A pending window/crossing selection started by a click on empty space.
|
|
#[derive(Clone, Copy, Debug, PartialEq, Serialize)]
|
|
pub struct PendingWindow {
|
|
pub corner: Vec2,
|
|
pub during_command: bool,
|
|
}
|