ui/widgets/display/kitty_image library
Classes
- KittyImage
-
A widget that renders an RGBA image using Kitty Graphics Unicode Placeholders (
U+10EEEE). - KittyImageData
- Immutable RGBA pixel buffer and grid placement metadata for a Kitty image.
- KittyImageElement
- Element that lays out and paints a KittyImage into a Buffer.
- KittyImageRegistry
-
In-memory registry mapping 32-bit Kitty
imageIds to KittyImageData.
Constants
-
kittyDiacritics
→ const List<
int> -
Official Kitty Graphics row/column/MSB combining diacritics table (indices
0..296). - kittyPlaceholderChar → const String
-
The UTF-16 string representation of
U+10EEEE. - kittyPlaceholderCodePoint → const int
-
The Unicode code point (
U+10EEEE) used by the Kitty Graphics Protocol for Unicode virtual placements (U=1).
Functions
-
extractKittyCellImageId(
String grapheme, int fgArgb) → int -
Extracts the 32-bit Kitty
imageIdfrom aU+10EEEEplaceholdergraphemeand cellfgArgbwithout allocating coordinate records. -
kittyPlaceholderCell(
int row, int col, {int imageIdMsb = 0}) → String -
Returns the Kitty Unicode placeholder grapheme for tile (
row,col). -
parseKittyPlaceholderCell(
String grapheme) → ({int col, int? imageIdMsb, int row})? -
Parses a Kitty Unicode placeholder grapheme into its
(row, col, imageIdMsb)tile coordinates, or returnsnullifgraphemeis not a validU+10EEEEplaceholder cell.