Skip to main content

blockworx_editor/
lib.rs

1//! Grid-aware document editing: everything between the document and the tools.
2//!
3//! A [`widget::drawing::Drawing`] is one level of the document resolved for a
4//! frame — its shapes, its wires and the gesture writing to it. The tools drive
5//! it, the render path draws it, and the [`edit`] emitters turn what a gesture
6//! did into the ops a commit carries. Nothing here names a UI toolkit: drawing
7//! goes through [`blockworx_paint::Renderer`], and interaction arrives as
8//! [`blockworx_paint::Interaction`].
9
10// The grid is the world-space metric, so it lives with the geometry; every
11// caller reaches it as `crate::grid`, the way the app does.
12pub(crate) use blockworx_geom::grid;
13// The theme is the paint vocabulary's own semantic layer (roles, fonts, the
14// `Style` adapter), reached as `crate::theme` the same way.
15pub(crate) use blockworx_paint::theme;
16
17pub mod content_path;
18pub mod edit;
19pub mod gesture;
20pub mod import;
21pub mod names;
22pub mod path;
23pub mod presentation;
24pub mod render;
25pub mod shape;
26pub mod state;
27pub mod title_block;
28pub mod widget;