Insets

@Stable()
interface Insets

Interface which represents a single set of inset values. Each instance holds four integer offsets which describe changes to the four edges of a rectangle.

Types

Companion
Link copied to clipboard
object Companion

Functions

copy
Link copied to clipboard
open fun copy(left: Int = this.left, top: Int = this.top, right: Int = this.right, bottom: Int = this.bottom): Insets
Returns a copy of this instance with the given values.
minus
Link copied to clipboard
open operator fun minus(other: Insets): Insets
plus
Link copied to clipboard
open operator fun plus(other: Insets): Insets

Properties

bottom
Link copied to clipboard
abstract val bottom: Int
The bottom dimension of these insets in pixels.
left
Link copied to clipboard
abstract val left: Int
The left dimension of these insets in pixels.
right
Link copied to clipboard
abstract val right: Int
The right dimension of these insets in pixels.
top
Link copied to clipboard
abstract val top: Int
The top dimension of these insets in pixels.

Inheritors

WindowInsets
Link copied to clipboard

Extensions

coerceEachDimensionAtLeast
Link copied to clipboard
fun Insets.coerceEachDimensionAtLeast(minimumValue: Insets): Insets
Ensures that each dimension is not less than corresponding dimension in the specified minimumValue.