TerminalLibraryFlutterPainter class

Encapsulates the logic for painting various terminal elements.

Constructors

TerminalLibraryFlutterPainter.new({required TerminalLibraryFlutterTheme theme, required TerminalLibraryFlutterStyle textStyle, required TextScaler textScaler})
UncompleteDocumentation

Properties

cellSize Size
The size of each character in the terminal.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textScaler TextScaler
UncompleteDocumentation
getter/setter pair
textStyle TerminalLibraryFlutterStyle
UncompleteDocumentation
getter/setter pair
theme TerminalLibraryFlutterTheme
UncompleteDocumentation
getter/setter pair

Methods

clearFontCache() → void
When the set of font available to the system changes, call this method to clear cached state related to font rendering.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintCell(Canvas canvas, Offset offset, CellData cellData) → void
UncompleteDocumentation
paintCellBackground(Canvas canvas, Offset offset, CellData cellData) → void
Paints the background of a cell represented by cellData to canvas at offset.
paintCellForeground(Canvas canvas, Offset offset, CellData cellData) → void
Paints the character in the cell represented by cellData to canvas at offset.
paintCursor(Canvas canvas, Offset offset, {required TerminalLibraryFlutterCursorType cursorType, bool hasFocus = true}) → void
Paints the cursor based on the current cursor type.
paintHighlight(Canvas canvas, Offset offset, int length, Color color) → void
UncompleteDocumentation
paintLine(Canvas canvas, Offset offset, BufferLine line) → void
Paints line to canvas at offset. The x offset of offset is usually 0, and the y offset is the top of the line.
resolveBackgroundColor(int cellColor) Color
Get the effective background color for a cell from information encoded in cellColor.
resolveForegroundColor(int cellColor) Color
Get the effective foreground color for a cell from information encoded in cellColor.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited