Package-level declarations

Types

Link copied to clipboard
class Anchor(val x: Float, val y: Float)

A point on the frame as a fraction of it, origin top-left, with constants for the nine common positions.

Link copied to clipboard
class AspectRatio(val width: Int, val height: Int)

An aspect ratio.

Link copied to clipboard
enum Corner : Enum<Corner>

One of the four corners of the output frame.

Link copied to clipboard
sealed interface Fill

What fills the frame where no clip's pixels land.

Link copied to clipboard
enum Fit : Enum<Fit>

How content is fitted into a target frame.

Link copied to clipboard

Which axis to mirror across.

Link copied to clipboard
class NormalizedRect(val left: Float, val top: Float, val right: Float, val bottom: Float)

A rectangle in 0f..1f of the frame, origin top-left with +Y down, the convention Compose, SwiftUI and CSS use.

Link copied to clipboard
class Size(val width: Int, val height: Int)

A size in whole pixels.