TerminalViewport class abstract
Abstract class for terminal windows.
Represents a window in the terminal where content can be displayed. Supports features like cursor management, screen updating, and event handling.
- Implemented types
Constructors
Properties
- cursor ↔ CursorState?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → TerminalService
-
no setter
- size → Size
-
The size of the canvas in terminal cells.
no setterinherited
Methods
-
drawBorderBox(
{required Rect rect, required BorderCharSet style, Color color = const Color.normal(), BorderDrawIdentifier? drawId}) → void -
Draws a box border around or within the specified rectangle.
override
-
drawBorderLine(
{required Position from, required Position to, required BorderCharSet style, Color color = const Color.normal(), BorderDrawIdentifier? drawId}) → void -
Draws a border line between two points.
override
-
drawColor(
{Color color, bool optimizeByClear = true}) → void -
Draws the background of the terminal window.
override
-
drawImage(
{required covariant TerminalImage image, required Position position}) → void -
Composites a terminal image onto the canvas.
override
-
drawPoint(
{required Position position, Color? background, Foreground? foreground}) → void -
Draws a single point on the canvas.
inherited
-
drawRect(
{required Rect rect, Color? background, Foreground? foreground}) → void -
Draws a filled rectangle on the canvas.
inherited
-
drawText(
{required String text, required Position position, ForegroundStyle? style}) → void -
Draws text on the canvas at the specified position.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateScreen(
) → void - Updates the terminal screen with any pending changes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited