Interface Canvas
access this type via: ui.Canvas (provides, requires or uses)
Canvas defines a fundamental drawing API, typically used by a Window and offered as a painting surface to any objects on the window.
Functions
void drawRect(Rect2D rect)
void drawRectOutline(Rect2D rect)
void drawLine(Line2D line)
void drawPoint(Point2D point)
void drawPixels(PixelMap map, int x, int y, int rotation)
void drawPixelsEx(PixelMap map, Rect subRect, int x, int y, int scaledWidth, int scaledHeight, int rotation)
void drawText(Point2D position, Font f, char text[])
void drawTextEx(Point2D position, Font f, char text[], int rotation)
void pushSurface(Rect rect, int xscr, int yscr, byte alpha)
void popSurface()
void drawRect(Rect2D rect)
void drawRectOutline(Rect2D rect)
void drawLine(Line2D line)
void drawPoint(Point2D point)
void drawPixels(PixelMap map, int x, int y, int rotation)
void drawPixelsEx(PixelMap map, Rect subRect, int x, int y, int scaledWidth, int scaledHeight, int rotation)
void drawText(Point2D position, Font f, char text[])
void drawTextEx(Point2D position, Font f, char text[], int rotation)
void pushSurface(Rect rect, int xscr, int yscr, byte alpha)
void popSurface()