Package-level declarations

Types

Link copied to clipboard

This specifies how the next frame is based on this frame.

Link copied to clipboard

This specifies how the next frame is based on this frame.

Link copied to clipboard
class AnimationFrameInfo(var requiredFrame: Int, var duration: Int, var isFullyReceived: Boolean, var alphaType: ColorAlphaType, var isHasAlphaWithinBounds: Boolean, var disposalMethod: AnimationDisposalMode, var blendMode: BlendMode, frameRect: IRect)

Information about individual frames in a multi-framed image.

Link copied to clipboard
class ArrayDecoder(ptr: NativePointer, disposePtr: NativePointer)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class BBHFactory : Managed
Link copied to clipboard
Link copied to clipboard
class Blender : RefCnt

Blender represents a custom blend function in the Skia pipeline. A blender combines a source color (the result of our paint) and destination color (from the canvas) into a final color.

Link copied to clipboard

Blends are operators that take in two colors (source, destination) and return a new color. Many of these operate the same on all 4 components: red, green, blue, alpha. For these, we just document what happens to one component, rather than naming each one separately.

Link copied to clipboard

A class that locates boundaries in text. This class defines a protocol for objects that break up a piece of natural-language text according to a set of criteria. Instances or subclasses of BreakIterator can be provided, for example, to break a piece of text into words, sentences, or logical characters according to the conventions of some language or group of languages.

Link copied to clipboard
open class Canvas : Managed
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Color
Link copied to clipboard
class Color4f(val r: Float, val g: Float, val b: Float, val a: Float = 1.0f)
Link copied to clipboard

Describes how to interpret the alpha component of a pixel. A pixel may be opaque, or alpha, describing multiple levels of transparency.

Link copied to clipboard
Link copied to clipboard

ColorFilters are optional objects in the drawing pipeline. When present in a paint, they are called with the "src" colors, and return new colors, which are then passed onto the next stage (either ImageFilter or Xfermode).

Link copied to clipboard
class ColorInfo(val colorType: ColorType, val alphaType: ColorAlphaType, val colorSpace: ColorSpace?)

Describes pixel and encoding. ImageInfo can be created from ColorInfo by providing dimensions.

Link copied to clipboard
value class ColorMatrix(val mat: FloatArray)
Link copied to clipboard
Link copied to clipboard

Describes how pixel bits encode color. A pixel may be an alpha mask, a grayscale, RGB, or ARGB.

Link copied to clipboard
Link copied to clipboard
class CubicResampler(val b: Float, val c: Float) : SamplingMode

Specify B and C (each between 0...1) to create a shader that applies the corresponding cubic reconstruction filter to the image.

Link copied to clipboard
class Data : Managed

Data holds an immutable data buffer.

Link copied to clipboard
Link copied to clipboard
abstract class Drawable : Managed

Base class for objects that draw into Canvas.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect annotation class ExternalSymbolName(val name: String)
actual typealias ExternalSymbolName = WebImport
actual typealias ExternalSymbolName = <Error class: unknown class>
actual typealias ExternalSymbolName = WebImport
Link copied to clipboard
Link copied to clipboard
class FilterMipmap(filterMode: FilterMode, mipmapMode: MipmapMode = MipmapMode.NONE) : SamplingMode
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Font : Managed
Link copied to clipboard

Whether edge pixels draw opaque or with partial transparency.

Link copied to clipboard
class FontExtents(val ascender: Float, val descender: Float, val lineGap: Float)
Link copied to clipboard
class FontFamilyName(val name: String, val language: String)
Link copied to clipboard
class FontFeature(val _tag: Int, val value: Int, val start: <Error class: unknown class>, val end: <Error class: unknown class>)
Link copied to clipboard

Level of glyph outline adjustment

Link copied to clipboard
class FontMetrics(val top: Float, val ascent: Float, val descent: Float, val bottom: Float, val leading: Float, val avgCharWidth: Float, val maxCharWidth: Float, val xMin: Float, val xMax: Float, val xHeight: Float, val capHeight: Float, val underlineThickness: Float?, val underlinePosition: Float?, val strikeoutThickness: Float?, val strikeoutPosition: Float?)
Link copied to clipboard
open class FontMgr : RefCnt
Link copied to clipboard

Consider registering this FontMgr as a default one to let all other possibly registered Font managers to look for their fallbacks first: FontCollection.setDefaultFontManager(...)

Link copied to clipboard
Link copied to clipboard
class FontStyle
Link copied to clipboard
Link copied to clipboard
class FontVariation(val _tag: Int, val value: Float)
Link copied to clipboard
class FontVariationAxis(val _tag: Int, val minValue: Float, val defaultValue: Float, val maxValue: Float, val isHidden: Boolean)
Link copied to clipboard
interface FontWeight
Link copied to clipboard
interface FontWidth
Link copied to clipboard
interface FourByteTag
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Gradient(val colors: Gradient.Colors, val interpolation: Gradient.Interpolation = Interpolation())

Specification for the colors in a gradient.

Link copied to clipboard
class Graphics
Link copied to clipboard
interface IHasImageInfo
Link copied to clipboard
Link copied to clipboard

Base class for image filters. If one is installed in the paint, then all drawing occurs as usual, but it is as if the drawing happened into an offscreen (before the xfermode is applied). This offscreen bitmap will then be handed to the imagefilter, who in turn creates a new bitmap which is what will finally be drawn to the device (using the original xfermode).

Link copied to clipboard
class ImageInfo(val colorInfo: ColorInfo, val width: Int, val height: Int)

Describes pixel dimensions and encoding. Bitmap, Image, Pixmap, and Surface can be created from ImageInfo. ImageInfo can be retrieved from Bitmap and Pixmap, but not from Image and Surface. For example, Image and Surface implementations may defer pixel depth, so may not completely specify ImageInfo.

Link copied to clipboard
Link copied to clipboard
class IPoint(val x: Int, val y: Int)
Link copied to clipboard
class IRange(val start: Int, val end: Int)
Link copied to clipboard
class IRect
Link copied to clipboard
class ISize
Link copied to clipboard
Link copied to clipboard

MaskFilter is the base class for object that perform transformations on the mask before drawing it. An example subclass is Blur.

Link copied to clipboard
expect class Matcher
actual typealias Matcher = <Error class: unknown class>
actual class Matcher
actual class Matcher
Link copied to clipboard
class Matrix22(mat: Float)

2x2 matrix.

Link copied to clipboard
class Matrix33(mat: Float)

Matrix holds a 3x3 matrix for transforming coordinates. This allows mapping Point and vectors with translation, scaling, skewing, rotation, and perspective.

Link copied to clipboard
class Matrix44(mat: Float)

4x4 matrix used by SkCanvas and other parts of Skia.

Link copied to clipboard
Link copied to clipboard
class OutputWStream(out: <Error class: unknown class>?) : WStream
Link copied to clipboard
class Paint : Managed
Link copied to clipboard
abstract class PaintFilterCanvas(canvas: Canvas, unrollDrawable: Boolean) : Canvas

A utility proxy base class for implementing draw/paint filters.

Link copied to clipboard
Link copied to clipboard

Cap draws at the beginning and end of an open path contour.

Link copied to clipboard

Join specifies how corners are drawn when a shape is stroked. Join affects the four corners of a stroked rectangle, and the connected segments in a stroked path.

Link copied to clipboard

Path contain geometry. Path may be empty, or contain one or more verbs that outline a figure. Path always starts with a move verb to a Cartesian coordinate, and may be followed by additional verbs that add lines or curves.

Link copied to clipboard

PathAddMode chooses how addPath() appends paths. Adding one Path to another can extend the last contour or start a new contour.

Link copied to clipboard

Enum for choosing smaller or larger arc when adding arcs to paths.

Link copied to clipboard

PathBuilder is used to create immutable Path objects.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
enum PathOp : Enum<PathOp>

The logical operations that can be performed when combining two paths.

Link copied to clipboard
class PathSegment(val verb: PathVerb = PathVerb.DONE, val p0: Point? = null, val p1: Point? = null, val p2: Point? = null, val p3: Point? = null, val conicWeight: Float = 0.0f, val isCloseLine: Boolean = false, val isClosedContour: Boolean = false)
Link copied to clipboard
interface PathSegmentMask
Link copied to clipboard
object PathUtils
Link copied to clipboard

Verb instructs Path how to interpret one or more Point and optional conic weight; manage contour, and terminate Path.

Link copied to clipboard
expect class Pattern
actual typealias Pattern = <Error class: unknown class>
actual class Pattern
actual class Pattern
Link copied to clipboard
class Picture : RefCnt
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Pixmap : Managed
Link copied to clipboard
class Point(val x: Float, val y: Float)
Link copied to clipboard
class Point3(val x: Float, val y: Float, val z: Float)
Link copied to clipboard
open class Rect(val left: Float, val top: Float, val right: Float, val bottom: Float)
Link copied to clipboard
class Region : Managed

Describes a set of pixels as either one integer rectangle or a run-length encoded set of rectangles.

Link copied to clipboard
class RRect : Rect
Link copied to clipboard
class RSXform(scos: Float, ssin: Float, tx: Float, ty: Float)

A compressed form of a rotation+scale matrix.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface SamplingMode
Link copied to clipboard
class Shader : RefCnt

Shaders specify the source color(s) for what is being drawn. If a paint has no shader, then the paint's color is used. If the paint has a shader, then the shader's color(s) are use instead, but they are modulated by the paint's alpha. This makes it easy to create a shader once (e.g. bitmap tiling or gradient) and then change its transparency w/o having to modify the original shader... only the paint's alpha needs to be modified.

Link copied to clipboard
Link copied to clipboard
class Surface : RefCnt
Link copied to clipboard
Link copied to clipboard
class SurfaceProps(isDeviceIndependentFonts: Boolean = false, pixelGeometry: PixelGeometry = PixelGeometry.UNKNOWN)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Kotlin mirror of std::vector (UTF-16)

Link copied to clipboard
Link copied to clipboard
abstract class WStream : Managed

Properties

Link copied to clipboard

Functions

Link copied to clipboard
external fun _nAdoptTextureFrom(contextPtr: NativePointer, backendTexture: NativePointer, surfaceOrigin: Int, colorType: Int): NativePointer
Link copied to clipboard
fun Image.Companion.makeFromEncoded(nsData: <Error class: unknown class>): Image
makeFromFileName
Link copied to clipboard

Create a new dataref the file with the specified path. If the file cannot be opened, this returns null.

Create a new dataref the file with the specified path. If the file cannot be opened, this returns null.

Link copied to clipboard

Creates OpenGL DirectContext using the provided interface. This allows usage of different OpenGL interfaces (e.g., EGL).

Link copied to clipboard
Link copied to clipboard
fun <R> DirectContext.useContext(block: (ctx: DirectContext) -> R): R