Skip to main content

Crate cellix_render

Crate cellix_render 

Source
Expand description

The cell grid every Cellix view draws to. Backends only present a grid, so every feature works on the text-cell tier and the pixel tiers alike.

Structs§

Bitmap
Pixels made elsewhere. id stands for the content, so a tile hashes it and not every byte.
Bounds
Cell
A screen cell. An empty symbol is the right half of a wide character.
CellMeasure
The text-cell tier, and tests.
Font
How a run of painted text is set.
FontMeasure
The pixel tiers: the same fonts and sizes the rasterizer draws with.
Grid
Image
A tightly packed RGB image, matching the Kitty protocol’s f=24.
Piece
One cell of an icon that is width by height cells.
Rect
Rgb
Run
A span of changed cells on one row.
SoftwareRasterizer
CPU rendering. Glyphs are rasterized once and blended into their cells, so text stays locked to the grid and a row costs little more than a copy.
Strip
One bar in a minimap, in 256ths of its box.
Style

Enums§

Icon
Paint
Pixels
What a bitmap’s bytes are.

Constants§

ALL_CORNERS
BOTTOM_LEFT
BOTTOM_RIGHT
INTERFACE_SIZE
Interface text is drawn at this size relative to the row height.
TOP_LEFT
TOP_RIGHT
UNIT
Paint positions are in 64ths of a cell, so they can sit between cells and still hash.

Traits§

Measure
Measures text, in cells, one advance per char.
Rasterizer
Turns one row of a grid into an image.

Functions§

units
Converts cells to paint units.