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 metrics;
11mod path;
12pub mod perf;
13mod preprocess;
14mod renderer;
15mod shadow;
16mod style;
17mod style_pool;
18
19pub const BEZIER_CIRCLE_K: f32 = 0.552_284_8;
20
21pub use command::{DrawCommand, TextRun};
22pub use culling::{FontMetrics, extend_bounds};
23#[doc(hidden)]
24pub use dirty::ScrollBlit;
25pub use draw_state::{DrawState, for_each_with_matrix, transform_clip_rect};
26pub use error::RendererError;
27pub use font_config::FontConfig;
28pub use geometry_core::{BorderRadius, Color};
29pub use hash::{hash_draw_commands, hash_draw_commands_into, hash_pod_slice};
30pub use image::{ExternalTexture, ImageData, ImageFilter, premultiply_rgba};
31pub use metrics::{
32    TextMetrics, line_height, measure_ink_bounds, measure_rich_text, measure_text,
33    set_default_text_metrics, set_text_metrics,
34};
35pub use path::{PathData, PathVerb};
36pub use preprocess::{ScaleScratch, blur_padding, blur_sigma, expand_fill_layers};
37pub use renderer::{RenderBackend, RendererBuild, RendererFactory};
38pub use shadow::ShadowLayout;
39pub use style::{
40    BorderWidths, FillRule, GlyphRaster, Gradient, GradientKind, GradientStop, GradientStops,
41    LineCap, LineJoin, Paint, PathStyle, RectStyle, Scale, Shadow, ShapeStyle, Stroke, TextAlign,
42    TextStyle, border_inner_shape,
43};
44pub use style_pool::hash_path_style;