blockworx_editor/render/mod.rs
1//! Drawing of data-model elements onto a [`Renderer`](blockworx_paint::Renderer)
2//! canvas. Each function takes an element (or its geometry) plus a
3//! [`Style`](crate::theme::Style) drawing surface and paints it; the functions
4//! are generic over the renderer backend so the same code drives both the
5//! on-screen painter and the SVG exporter. `widget`/`tools` own interaction
6//! and frame orchestration and delegate the actual painting here.
7
8pub mod bounds;
9pub mod text_box;
10
11mod block;
12mod hit_test;
13mod image;
14mod layout;
15mod path;
16mod pin;
17mod port;
18mod route;
19mod selection;
20mod text;
21
22pub use block::*;
23pub use hit_test::*;
24pub use image::*;
25pub use layout::*;
26pub use path::*;
27pub use pin::*;
28pub use port::*;
29pub use route::*;
30pub use selection::*;
31pub use text::*;