FrameView class final TUI

A View that composes styled strings into positioned terminal regions.

FrameView is the immediate-mode rendering path for foundational TEA applications. The runtime creates a cleared Frame at the current viewport size and invokes paint once per rendered model state.

content is an optional fallback used by renderers that do not support structured frames. It is not parsed by UltravioletTuiRenderer.

Inheritance

Constructors

FrameView({required FramePainter paint, String content = '', Cmd? onMouse(MouseMsg msg)?, Cursor? cursor, Color? backgroundColor, Color? foregroundColor, String? windowTitle, TerminalProgressBar? progressBar, bool? altScreen, bool? reportFocus, bool? bracketedPaste, MouseMode? mouseMode, KeyboardEnhancements? keyboardEnhancements, ViewDegradation? degradation})
Creates a structured cell view.
const

Properties

altScreen bool?
Optional override for alternate screen buffer mode.
finalinherited
backgroundColor Color?
Optional terminal background color.
finalinherited
bracketedPaste bool?
Optional override for bracketed paste mode.
finalinherited
content String
The screen content of the view.
finalinherited
cursor Cursor?
Optional cursor position and style.
finalinherited
degradation ViewDegradation?
Optional degraded content stages used by the runtime when render frames exceed the configured budget.
finalinherited
foregroundColor Color?
Optional terminal foreground color.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
keyboardEnhancements KeyboardEnhancements?
Optional keyboard enhancement features to request from the terminal.
finalinherited
mouseMode MouseMode?
Optional override for mouse tracking mode.
finalinherited
onMouse Cmd? Function(MouseMsg msg)?
Optional mouse message handler that can be used to intercept mouse messages.
finalinherited
paint FramePainter
Paints the current model state into a frame.
final
progressBar TerminalProgressBar?
Optional terminal progress bar state.
finalinherited
reportFocus bool?
Optional override for focus reporting.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
windowTitle String?
Optional terminal window title.
finalinherited

Methods

degraded(DegradationLevel level) FrameView
Returns this view resolved for the given degradation level.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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