Frame class
Special type of Panel using a PanelBorder.frame border that renders a title near the top-right corner.
- Inheritance
-
- Object
- Panel
- BorderPanel
- Frame
Constructors
Properties
- background ↔ Color?
-
Optional background color; uses the Terminal's background color
by default
getter/setter pairinherited
- borderColor ↔ Color?
-
Optional border color; defaults to Terminal.foreground
getter/setter pairinherited
- bounds ↔ Rect
-
Panel bounds
getter/setter pairinherited
- contentBounds → Rect
-
Bounds Rect for the area available for content inside this panel
no setterinherited
- contentRenderer ↔ (void Function(Terminal)?)
-
Set a
void Function(Terminal)
implementation to render content within the panel. The provided Terminal is already set up such that it represents the full extent of the available content area of this Panel. You can use this to draw panels without subclassing and overriding renderContent.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleColor ↔ Color?
-
Optional title color; defaults to Terminal.foreground
getter/setter pair
- width → int
-
The width of the panel
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Terminal terminal) → void -
Render the panel and its contents. This should be called from within
Layer.render.
override
-
renderContent(
Terminal terminal) → void -
Render content within the panel. The provided
terminal
is already set up such that it represents the full extent of the available content area of this Panel. By default, this method calls contentRenderer if it is defined.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited