Implemented by

Constructors

Display(ArdProto proto)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
proto ArdProto

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

bitmap(int x, int y, int width, int height, int color, Iterable<int> bytes, {int background, bool xmb: false}) → Future<bool>

Draw normal or xmb bitmap (1 bit, 8 pixels per byte.)

circle(int x, int y, int radius, int color, {bool fill: false}) → Future<bool>

clear() → Future<bool>

Clears the offscreen buffer.

cursor(int x, int y) → Future<bool>

Moves the curosr to a new (x, y) location for certain display calls.

display() → Future<bool>

Updates the physical display with the offscreen buffer.

fillDisplay(int color) → Future<bool>

Fills the offscreen buffer with a color.

line(int x0, int y0, int x1, int y1, int color) → Future<bool>

Draw a line from (x, y) to (x1, y1) with color.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
rectangle(int x, int y, int width, int height, int color, {bool fill: false, int radius}) → Future<bool>

text(String text) → Future<bool>

Renders text to the cursor location at textSize and with colors set by textColor.

textColor(int fg, [int bg]) → Future<bool>

Changes the foreground, and optionally background colors for any future calls to text.

textSize(int size) → Future<bool>

Changes the text size for any future calls to text.

toString() → String

Returns a string representation of this object.

inherited
triangle(int x0, int y0, int x1, int y1, int x2, int y2, int color, {bool fill: false}) → Future<bool>

Draw a triangle between three points with color.