Package-level declarations
Types
Represents an Affine Transformation that supports 3D.
Represents an Affine Transformation that supports only 2D.
All rendering operations are done using Canvases. A canvas represents an "infinite", 2-D surface that can be "drawn" onto. Despite this, there is a size associated with each Canvas that indicates its clipping region. The framework manages Canvases and makes them available to Views during View.render.
Common functionality for all canvas types. This interface was separated from Canvas to simplify the implementation of PatternCanvas. This allows the former and Canvas to have different levels of support for perspective rendering. This might be avoidable if Kotlin supported self-types, since the Canvas API has references to context lambdas that refer to Canvas. This might eventually work as self references and allow the interfaces to be merged again.
Provides a mechanism to load or lookup Fonts.
A Canvas used within PatternPaint that does not support perspective rendering. This is done because support for patterns with perspective is very inconsistent for Web.
Represents a 3D transform similar to an AffineTransform, but it does not guarantee the preservation of parallel lines. These transforms are used whenever a perspective projection is needed to properly render an item.
Created by Nicholas Eddy on 2/28/19.
Strokes are used to outline regions when drawing shapes on a Canvas.
Provides a mechanism to measure the size of various types of text.
Inherited properties
The height to which the Canvas will clip by default.
Creates a new ColorPaint from the given Color.
The width to which the Canvas will clip by default.
Functions
Creates a PatternPaint that draws a checkered pattern.
Creates a PatternPaint that draws an alternating horizontal striped pattern.
Creates a PatternPaint that draws an alternating horizontal striped pattern.
Creates a PatternPaint that draws an alternating vertical striped pattern.
Inherited functions
Fills an arc centered at the given point and swept by the given angle.
Fills and outlines an arc centered at the given point and swept by the given angle.
Fills a circle.
Fills and outlines a circle.
Return the angle this transform would apply.
Fills an ellipse.
Fills and outlines an ellipse.
Transforms the given points.
Fills a rectangle.
Fills and outlines a rectangle.
Fills a rounded rectangle.
Fills and outlines a rounded rectangle.
Fills a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.
Fills and outlines a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.