Skip to main content

widgetkit_render/
lib.rs

1//! Stable render surface: `Canvas`, text styles, and the software renderer.
2//! WidgetKit routes drawing through an explicit `RenderFrame` command model,
3//! while keeping direct low-level access behind the `Canvas::experimental_raw` escape hatch.
4
5mod canvas;
6mod frame;
7mod model;
8mod raster;
9mod style;
10mod surface;
11mod text;
12
13pub use canvas::{Canvas, RawCanvas};
14pub use model::{
15    ClearCommand, ClipCommand, ClipPrimitive, Fill, FillCommand, FillShape, ImageCommand,
16    ImageSource, Paint, RenderCommand, RenderFrame, StateCommand, StrokeCommand, StrokeShape,
17    TextCommand, Transform, TransformCommand,
18};
19pub use style::{Stroke, TextAlign, TextBaseline, TextMetrics, TextStyle};
20pub use surface::{RenderSurface, Renderer, SoftwareRenderer};
21
22#[cfg(test)]
23mod tests;