Insets

class Insets

Functions

copy
Link copied to clipboard
fun copy(left: Int = this.left, top: Int = this.top, right: Int = this.right, bottom: Int = this.bottom, isVisible: Boolean = this.isVisible): Insets
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
minus
Link copied to clipboard
operator fun minus(other: Insets): Insets
plus
Link copied to clipboard
operator fun plus(other: Insets): Insets
toString
Link copied to clipboard
open fun toString(): String

Properties

bottom
Link copied to clipboard
var bottom: Int
The bottom dimension of these insets in pixels.
isVisible
Link copied to clipboard
var isVisible: Boolean
Whether the insets are currently visible.
left
Link copied to clipboard
var left: Int
The left dimension of these insets in pixels.
right
Link copied to clipboard
var right: Int
The right dimension of these insets in pixels.
top
Link copied to clipboard
var top: Int
The top dimension of these insets in pixels.

Extensions

toPaddingValues
Link copied to clipboard
inline fun Insets.toPaddingValues(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true, additionalHorizontal: Dp = 0.dp, additionalVertical: Dp = 0.dp): PaddingValues
Returns the current insets converted into a PaddingValues.
fun Insets.toPaddingValues(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true, additionalStart: Dp = 0.dp, additionalTop: Dp = 0.dp, additionalEnd: Dp = 0.dp, additionalBottom: Dp = 0.dp): PaddingValues
Returns the current insets converted into a PaddingValues.

Sources

(source)
Link copied to clipboard