VtRenderColors class final
Colors exposed by a render-state snapshot.
Constructors
-
VtRenderColors({required VtRgbColor background, required VtRgbColor foreground, required VtRgbColor? cursor, required List<
VtRgbColor> palette}) -
const
- VtRenderColors.fromNative(GhosttyRenderStateColors native)
-
factory
Properties
- background → VtRgbColor
-
final
- cursor → VtRgbColor?
-
final
- foreground → VtRgbColor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
palette
→ List<
VtRgbColor> -
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
-
paletteAt(
int index) → VtRgbColor -
Returns the palette entry at
index. -
resolve(
VtStyleColor color, {VtRgbColor? defaultColor}) → VtRgbColor? -
Resolves
colorto an RGB value using this render-state palette. -
resolveBackground(
VtStyle style) → VtRgbColor? - Resolves this style's background color using this render-state palette.
-
resolveForeground(
VtStyle style) → VtRgbColor? - Resolves this style's foreground color using this render-state palette.
-
resolveUnderlineColor(
VtStyle style) → VtRgbColor? - Resolves this style's underline color using this render-state palette.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited