Crate drafftink_render

Crate drafftink_render 

Source
Expand description

DrafftInk Render Library

Renderer abstraction and implementations for DrafftInk. The default implementation uses Vello for GPU-accelerated rendering.

Re-exports§

pub use text_editor::TextEditResult;
pub use text_editor::TextEditState;
pub use text_editor::TextKey;
pub use text_editor::TextModifiers;

Modules§

text_editor
Text editing state using Parley’s PlainEditor.

Structs§

AngleSnapInfo
Angle snap visualization info.
PngRenderResult
Result of PNG rendering - contains the raw RGBA pixel data and dimensions.
RenderContext
Context for a single render frame.
VelloRenderer
Vello-based renderer for GPU-accelerated 2D graphics.

Enums§

GridStyle
Grid display style.
RendererError
Renderer errors.

Traits§

Renderer
Trait for rendering backends.