KittyImage class
A widget that renders an RGBA image using Kitty Graphics Unicode Placeholders (U+10EEEE).
Each cell within the widget's layout bounds is populated with \u{10EEEE}
followed by row and column combining diacritics, fg = 0xFF000000 | imageId,
and Modifier.kittyPlaceholder. Because each cell is a standard 1-column
grapheme in Buffer, overlapping windows in Compositor occlude the image
cleanly at cell boundaries.
Constructors
- KittyImage({Key? key, required int imageId, required int pixelWidth, required int pixelHeight, required Uint8List rgbaPixels, int? columns, int? rows, int version = 0})
-
Creates a KittyImage widget.
const
Properties
- columns → int?
-
Optional explicit column width (defaults to available constraint width).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageId → int
-
Unique 32-bit Kitty image identifier (
1..0xFFFFFFFF).final - key → Key?
-
The optional key for this widget.
finalinherited
- pixelHeight → int
-
Height of rgbaPixels in pixels.
final
- pixelWidth → int
-
Width of rgbaPixels in pixels.
final
- rgbaPixels → Uint8List
-
Raw RGBA8888 pixel buffer (
pixelWidth * pixelHeight * 4bytes).final - rows → int?
-
Optional explicit row height (defaults to available constraint height).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
Version number incremented when rgbaPixels mutates under the same imageId.
final
- wantsKeyReleaseEvents → bool
-
Whether this widget opts in to receiving KeyEventType.release events.
no setterinherited
Methods
-
createElement(
) → Element -
Creates an Element to manage this widget's location in the tree.
override
-
getIntrinsicHeight(
int width) → int -
Computes the intrinsic height of this widget under the given
widthconstraint.override -
getIntrinsicWidth(
int height) → int -
Computes the intrinsic width of this widget under the given
heightconstraint.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited