Skip to main content

telar_renderer_core/
lib.rs

1mod command;
2pub mod culling;
3pub mod dirty;
4mod draw_state;
5mod error;
6pub mod font_config;
7pub mod gpu_sync;
8mod hash;
9mod image;
10mod path;
11pub mod perf;
12mod preprocess;
13mod renderer;
14mod shadow;
15mod style;
16pub mod style_pool;
17
18pub const BEZIER_CIRCLE_K: f32 = 0.552_284_8;
19
20pub use command::{DrawCommand, TextRun};
21pub use culling::{FontMetrics, extend_bounds};
22#[doc(hidden)]
23pub use dirty::ScrollBlit;
24pub use draw_state::{DrawState, for_each_with_matrix, transform_clip_rect};
25pub use error::RendererError;
26pub use font_config::FontConfig;
27pub use geometry_core::{BorderRadius, Color};
28pub use hash::{hash_draw_commands, hash_draw_commands_into, hash_pod_slice};
29pub use image::{ImageData, ImageFilter, premultiply_rgba};
30pub use path::{PathData, PathVerb};
31pub use preprocess::{
32    ScaleScratch, blur_padding, blur_sigma, expand_fill_layers, scale_commands,
33    would_expand_fill_layers,
34};
35pub use renderer::RenderBackend;
36pub use shadow::ShadowLayout;
37pub use style::{
38    FillRule, Gradient, GradientKind, GradientStop, GradientStops, LineCap, LineJoin, Paint,
39    PathStyle, RectStyle, Scale, Shadow, ShapeStyle, Stroke, TextAlign, TextStyle,
40};
41pub use style_pool::{hash_path_style, hash_rect_style, hash_text_style};