CanvasRenderer class abstract
Base class for a renderer that draws on an HTML5 html.CanvasElement
- Inheritance
- Implementers
Constructors
- CanvasRenderer(int _scale, CanvasRenderingContext2D _ctx)
Properties
- charHeight → int
-
The height in pixels of a single rendered character (before scaling)
no setter
- charWidth → int
-
The width in pixels of a single rendered character (before scaling)
no setter
- ctx → CanvasRenderingContext2D
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
loaded
→ Future<
void> -
Returns a Future that resolves whenever the underlying assets used by
the renderer are fully loaded and the renderer is actually ready to
render. Calling renderChar before waiting for this future to resolve may
result in undefined behavior.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → int
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderChar(
int x, int y, Char char) → void -
Render the given Char at column
x
, rowy
in a Terminalinherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited