blockworx/canvas/mod.rs
1//! The egui backend: the on-screen painter and the canvas widget it paints in.
2//!
3//! Everything the render path draws *with* — the
4//! [`Renderer`](blockworx_paint::Renderer) trait, the
5//! palette, the theme and its [`Style`](blockworx_paint::theme::Style) adapter,
6//! the interaction types — lives in [`blockworx_paint`]. What is here is the one
7//! place that turns those into egui calls, plus the SVG exporter, which
8//! implements the same trait offline.
9
10pub mod egui_compat;
11pub mod image;
12pub mod interaction;
13pub mod painter;
14#[cfg(test)]
15mod style_tests;
16pub mod svg;
17pub mod view;
18
19pub use svg::SvgRenderer;
20pub use view::{Camera, CanvasChrome, View};