TerminalPaintExtension class
Optional application painting and cell foreground filtering for a terminal.
Callbacks run synchronously during paint, clipped to the content viewport. Each callback has isolated canvas state. Balance any canvas saves/restores, and do not retain the canvas or mutate terminal/controller state during paint. The caller owns repaint and any graphics resources.
Constructors
- TerminalPaintExtension({TerminalPaintCallback? beforeCellBackgrounds, TerminalPaintCallback? beforeCellForegrounds, TerminalPaintCallback? afterCellForegrounds, TerminalCellForegroundFilter? cellForegroundFilter, Listenable? repaint})
-
const
Properties
- afterCellForegrounds → TerminalPaintCallback?
-
Runs after text, selection/search recoloring and controller underlines,
before composing text and non-block cursors. A focused block cursor is
painted with the text and can be covered by this callback.
final
- beforeCellBackgrounds → TerminalPaintCallback?
-
Runs after the terminal's base fill, before cell backgrounds.
final
- beforeCellForegrounds → TerminalPaintCallback?
-
Runs after cell backgrounds, before selection, search and cursor overlays.
final
- cellForegroundFilter → TerminalCellForegroundFilter?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- repaint → Listenable?
-
Requests a repaint when application-owned graphics change.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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