Skip to main content

Crate urushi_graphics

Crate urushi_graphics 

Source
Expand description

Image components and terminal graphics adapters for Urushi.

Core urushi reserves and resolves image regions through its generic anchor contract. This crate owns the image data, presentation, placement lookup, and terminal-protocol adapters layered on those resolved regions. One-shot rendering stays stateless; an interactive renderer may retain kitty::KittyLifecycle for Kitty upload and placement reuse or sixel::SixelLifecycle for encoded Sixel band reuse.

Modules§

kitty
Stateless and retained Kitty graphics presentation.
sixel
Stateless and cached immediate-mode Sixel presentation.

Structs§

CellSize
Terminal-cell dimensions requested for one image placement.
GraphicPlacement
One renderer-neutral image placement derived from an Urushi anchor.
Image
Prepared image content and the identities of its asset and placement.
ImagePresentation
Canonical policy for composing an Image into a fixed cell rectangle.
PixelPosition
Pixel coordinates within a prepared raster.
PixelSize
Pixel dimensions of a prepared raster.
RgbaRaster
Immutable, prepared RGBA pixels identified independently from a placement.

Enums§

GraphicsPreference
Caller-selected policy for terminal image output.
GraphicsSelection
The graphics path selected for one terminal presentation.
GraphicsUnavailable
Why an explicitly requested graphics path cannot be used.
InvalidRgbaRaster
Why RGBA bytes cannot form a prepared raster.

Functions§

image_placements
Returns the image placements embedded in view after layout resolution.
render_resolved_images
Renders caller-supplied images over an already resolved View.
render_view
Resolves and renders one complete View at the terminal’s top-left cell.
select_graphics
Selects the graphics path from caller policy and positive terminal evidence.