RenderableTerminal<T extends Renderer > class
abstract
Properties
background
↔ Color
The default background color when none is specified
getter/setter pair inherited
bounds
→ Rect
The bounds of this terminal as a Rect
no setter inherited
foreground
↔ Color
The default foreground color when none is specified
getter/setter pair inherited
hashCode
→ int
The hash code for this object.
no setter inherited
height
→ int
The height of the terminal screen in rows of characters
no setter override
renderer
→ T
The renderer used by this RenderableTerminal
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
size
→ Vec2
The size of the terminal as a vector
no setter override
width
→ int
The width of the terminal screen in columns of characters
no setter override
Methods
boundsCheck (int x , int y )
→ void
Ensures that the given position x
, y
is within the bounds of this
Terminal
inherited
child (int x , int y , int width , int height )
→ Terminal
Get a child Terminal within this one
inherited
childRect (Rect rect )
→ Terminal
Get a child Terminal within this one, defined by the given rect
.
inherited
clear ()
→ void
Clears the entire terminal with empty characters using the current
background Color .
inherited
drawChar (int x , int y , Char char )
→ void
Most basic draw method for the terminal; draws the given Char at column
x
, row y
of this Terminal .
override
drawCharCode (int x , int y , int charCode , [Color ? foreground , Color ? background ])
→ void
Draws a character at column x
, row y
of this Terminal using its
integer charCode
using the given foreground
and background
Color s
(or default colors).
inherited
drawText (int x , int y , String text , [Color ? foreground , Color ? background ])
→ void
Draws the string of characters in text
starting at column x
, row y
of this Terminal using the given foreground
and background
Color s
(or default colors). The text will be truncated if it runs beyond the
bounds of the terminal.
inherited
drawTextCenter (int y , String text , [Color ? foreground , Color ? background ])
→ void
Draws the string of characters in text
on row y
such that the text is
centered horizontally in this Terminal . If the length of text
is
longer than this terminal's width , the text will be positioned at
column 0.
inherited
fill (int x , int y , int width , int height , [Color ? color ])
→ void
Clears and fills the given rectangle with the given (or default)
background Color .
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelsToPosition (Vec2 pixels )
→ Vec2
Converts the given position on the rendered display in pixels to a
column/row position on this RenderableTerminal .
render ()
→ void
Renders the RenderableTerminal
toString ()
→ String
A string representation of this object.
inherited