Expand description
The bottom of Teksilo’s stack, below teksilo-core and teksilo-render, with no GPU, window or widget in it. It holds three things.
- The paint model. A widget’s
paint()draws into aCanvas, which records aRenderFrameofDrawCommands for a renderer to replay. Around it:geometry,Path,Paint, raster and SVG icons (RasterIcon,SvgIcon), and theTextBackendtrait a text engine implements. - Live pictures.
live_image: a raster another thread rewrites (a VM screen, a video, a camera), the writers a producer commits through, and what a frame carries of it.image_geometryplaces a picture in a widget and maps points to its pixels. - The wake layer.
wake: how any thread wakes one window, shared by live pictures and teksilo-core’sRepaintTrigger.
The last two are here, not in a crate of their own, because of who needs
them. teksilo-render consumes live pictures and depends on this crate, not
on teksilo-core; a RenderFrame carries them; and a producer uses them
without the GUI. A crate of their own would sit below this one, and this
one would depend on it.
Re-exports§
pub use animated::AnimatedIcon;pub use canvas::Canvas;pub use exif::Orientation;Deprecated pub use geometry::EdgeInsets;pub use geometry::Point;pub use geometry::Rect;pub use geometry::Size;pub use geometry::SizeProposal;pub use geometry::Transform2D;pub use geometry::Vec2;pub use image_geometry::ImageFit;pub use image_geometry::ImageGeometry;pub use image_geometry::ImageOrientation;pub use image_geometry::PixelRect;pub use paint::FillRule;pub use paint::GradientStop;pub use paint::ImageHandle;pub use paint::LineCap;pub use paint::LineJoin;pub use paint::Paint;pub use paint::StrokeSpace;pub use paint::StrokeStyle;pub use path::ArcCubic;pub use path::Path;pub use path::PathCommand;pub use path::Subpath;pub use path::arc_to_cubics;pub use path::arc_transform_is_exact;pub use path::subpaths_contain_point;pub use raster::ImageDecodeError;pub use raster::ImageFormat;pub use raster::RasterIcon;pub use render_frame::AnimParams;pub use render_frame::AnimatedQuadClass;pub use render_frame::AnimatedQuadDraw;pub use render_frame::BlendMode;pub use render_frame::CosmeticLine;pub use render_frame::DecorationKind;pub use render_frame::DecorationRect;pub use render_frame::DrawCommand;pub use render_frame::GlyphQuad;pub use render_frame::ImagePixels;pub use render_frame::ImageQuad;pub use render_frame::PaintData;pub use render_frame::PathEntry;pub use render_frame::PendingImage;pub use render_frame::RasterizedQuad;pub use render_frame::RenderFrame;pub use render_frame::ShadowQuad;pub use render_frame::ShapeKind;pub use render_frame::ShapeQuad;pub use svg::ResolvedGradient;pub use svg::SvgDrawOp;pub use svg::SvgFill;pub use svg::SvgIcon;pub use svg::SvgOp;pub use svg::SvgPaint;pub use svg::SvgParseError;pub use svg::SvgStop;pub use svg::SvgStroke;pub use text_backend::AtlasInfo;pub use text_backend::CharGeom;pub use text_backend::EllipsisMode;pub use text_backend::GlyphValidation;pub use text_backend::HitTarget;pub use text_backend::LineEnd;pub use text_backend::LineTruncation;pub use text_backend::MockTextBackend;pub use text_backend::TextBackend;pub use text_backend::TextDirection;pub use text_backend::TextGeometry;pub use text_backend::TextLayout;pub use text_backend::TextLayoutRequest;pub use text_backend::TextLayoutSpan;pub use text_backend::TextLine;pub use text_backend::TextLineSegment;pub use text_backend::TextLink;pub use text_backend::TextOverflow;pub use text_backend::TextSpanKind;pub use text_backend::lay_out_ignoring_language;pub use text_backend::quantize_raster_scale;
Modules§
- animated
- Animated icon decoding: animated WebP → frame sequence.
- canvas
- ellipsis
- Middle and leading ellipsis truncation helpers.
- exif
- EXIF orientation: the one metadata tag a decoder cannot ignore.
- geometry
- image_
geometry - Where a picture lands in its box, and which source pixel a point shows.
- live_
image - Off-thread pixels: a raster another thread rewrites many times a second, shown at display rate with flat GPU memory.
- paint
- path
- raster
- Raster decoding: PNG, JPEG and static WebP → RGBA pixel data.
- render_
frame - resample
- Correct RGBA8 downscaling, shared by the mip builder and by image decoding.
- svg
- SVG parsing: load SVG icons as
Pathgeometry for rendering. - text_
backend - wake
- Waking a window from another thread.