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
abstract class BBHFactory : Managed
Link copied to clipboard
Link copied to clipboard
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
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
class ColorMatrix(mat: Float)
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
expect annotation class ExternalSymbolName(val name: String)
actual typealias ExternalSymbolName = JsName
actual typealias ExternalSymbolName = SymbolName
actual annotation class ExternalSymbolName(val name: String)
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: UInt, val end: UInt)
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
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
class GradientStyle(val tileMode: FilterTileMode, val isPremul: Boolean, val localMatrix: Matrix33?)
Link copied to clipboard
class Graphics
Link copied to clipboard
interface IHasImageInfo
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
expect class Matcher
actual class Matcher
actual typealias Matcher = java.util.regex.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
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
expect annotation class ModuleImport(val module: String, val name: String)
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class ModuleImport(val module: String, val name: String)
actual typealias ModuleImport = WasmImport
Link copied to clipboard
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
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 class Pattern
actual typealias Pattern = java.util.regex.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
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
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
fun Image.Companion.makeFromEncoded(nsData: <Error class: unknown class>): Image
makeFromFile
Link copied to clipboard
fun Typeface.Companion.makeFromFile(path: String, index: Int = 0): Typeface
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
Link copied to clipboard
fun <R> DirectContext.useContext(block: (ctx: DirectContext) -> R): R