Constraints

data class Constraints(val minWidth: Int = 0, val maxWidth: Int = Int.MAX_VALUE, val minHeight: Int = 0, val maxHeight: Int = Int.MAX_VALUE)(source)

Constructors

Link copied to clipboard
constructor(minWidth: Int = 0, maxWidth: Int = Int.MAX_VALUE, minHeight: Int = 0, maxHeight: Int = Int.MAX_VALUE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val maxHeight: Int
Link copied to clipboard
val maxWidth: Int
Link copied to clipboard
val minHeight: Int
Link copied to clipboard
val minWidth: Int

Functions

Link copied to clipboard
fun clampHeight(height: Int): Int
Link copied to clipboard
fun clampWidth(width: Int): Int
Link copied to clipboard
fun constrain(width: Int, height: Int): Pair<Int, Int>