PaintFit

enum class PaintFit : Enum<PaintFit> (source)

how a paint in PaintUnits.BOUNDS units fits bounds that are not square

Entries

Link copied to clipboard

the 0..1 square of the paint stretches over the bounds

Link copied to clipboard

the 0..1 square of the paint fits inside the bounds, centered, keeping its aspect ratio

Link copied to clipboard

the 0..1 square of the paint covers the bounds, centered, keeping its aspect ratio

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard
fun valueOf(value: String): PaintFit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int