Expand description
jag-surface: Canvas-style API on top of jag-draw.
Modules§
Structs§
- Cached
Frame Data - Cached GPU resources from a previous
end_framecall, 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
Painterand adds canvas helpers. - JagSurface
- High-level canvas-style wrapper over Painter + PassManager.
- RawImage
Draw - Raw image draw request for rendering pixel data directly.
Enums§
- Image
FitMode - How an image should fit within its bounds.
- Scrim
Draw - 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: