pcanvas library

Portable canvas library.

Classes

CubicCurveTo
A Cubic Bezier Curve to x y.
DynamicDimension
DynamicElementPosition
DynamicPosition
GLine
GPanel
A panel shape that can have sub-shapes (elements).
GPath
A path shape.
Graphic
A graphic built by simple shapes (GShape).
GraphicContext
GRectangle
A simple rectangle shape.
GShape
GSVG
A SVG shape.
GSVGPath
PCanvas
Portable Canvas.
PCanvasBackgroundGradient
A simple gradient background.
PCanvasClickEvent
A PCanvas click event. See PCanvas.onClick.
PCanvasElement
A base class for PCanvas elements.
PCanvasElement2D
PCanvasElement2DBase
PCanvasEvent
A PCanvas event.
PCanvasFactory
PCanvasGridPanel2D
PCanvasImage
Base class for PCanvas compatible images. See PCanvas.createCanvasImage.
PCanvasKeyEvent
A PCanvas key event. See PCanvas.onKey.
PCanvasPainter
PCanvas painter base class.
PCanvasPainterDummy
A dummy PCanvasPainter implementation that won't perform any operation.
PCanvasPanel2D
PCanvasPixels
Pixels of a PCanvas. See PCanvas.pixels.
PCanvasPixelsABGR
PCanvasPixels in ABGR format.
PCanvasPixelsARGB
PCanvasPixels in ARGB format.
PCanvasPixelsRGBA
PCanvasPixels in RGBA format.
PCanvasState
PCanvasStateExtra
PcanvasTransform
PCanvas transformation.
PColor
A PCanvas color.
PColorRGB
PColorRGBA
PDimension
A PCanvas dimension.
PFont
A PCanvas font.
PGraphic
A PCanvasElement that paints a Graphic.
Point
A PCanvas point.
Position
PRectangle
A PCanvas rectangle.
PRectangleElement
A rectangle PCanvasElement2D.
PStyle
PTextMetric
A PCanvas text metric.
WithBoundingBox
Interface for classes with a boundingBox.
WithDimension
WithElement
Interface for classes with element.
WithJson
WithParentElement
Interface for classes with a parent PCanvasElement.
WithXY

Mixins

PCanvasElementContainer<E extends PCanvasElement>
Mixin for a class that is a container for PCanvasElement.

Functions

hsvToRGB(double h, double s, double v) → ({int b, int g, int r})
rgbToHSV(int r, int g, int b) → ({double h, double s, double v})

Typedefs

PaintFunction = FutureOr<bool> Function(PCanvas pCanvas)