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.
idstands 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.
- Cell
Measure - The text-cell tier, and tests.
- Font
- How a run of painted text is set.
- Font
Measure - 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
widthbyheightcells. - Rect
- Rgb
- Run
- A span of changed cells on one row.
- Software
Rasterizer - 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§
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§
- on_
large_ button - Whether a click at
at(columns and rows, with their fractions) lands on the large buttonGrid::large_buttonpaints at(x, y),widthcells wide. It takes the whole of what’s painted, which stands a little past its row above and below. A terminal without pixel reports gives the middle of a cell, so there it’s the button’s row. - units
- Converts cells to paint units.