Skip to main content

Crate jag_surface

Crate jag_surface 

Source
Expand description

jag-surface: Canvas-style API on top of jag-draw.

Modules§

shapes

Structs§

CachedFrameData
Cached GPU resources from a previous end_frame call, enabling scroll-only frames to skip the expensive IR walk, display list build, and GPU upload. Instead, the cached buffers are re-rendered with a delta scroll offset applied via the viewport uniform.
Canvas
Builder for a single frame’s draw commands. Wraps Painter and adds canvas helpers.
JagSurface
High-level canvas-style wrapper over Painter + PassManager.
RawImageDraw
Raw image draw request for rendering pixel data directly.

Enums§

ImageFitMode
How an image should fit within its bounds.
ScrimDraw
Scrim drawing modes.

Functions§

get_last_raw_image_rect
Get the last raw image rect (for hit testing from FFI).
resolve_asset_path
Resolve an asset path by checking multiple locations: