-
@Deprecated(message = accompanist/insets is deprecated. The androidx.compose equivalent of Insets is WindowInsets. For more migration information, please visit https://google.github.io/accompanist/insets/#migration )@Stable() public 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInsets.Companion
-
Method Summary
Modifier and Type Method Description Insetscopy(Integer left, Integer top, Integer right, Integer bottom)Returns a copy of this instance with the given values. Insetsminus(Insets other)Insetsplus(Insets other)abstract IntegergetLeft()The left dimension of these insets in pixels. abstract IntegergetTop()The top dimension of these insets in pixels. abstract IntegergetRight()The right dimension of these insets in pixels. abstract IntegergetBottom()The bottom dimension of these insets in pixels. -
-
Method Detail
-
copy
Insets copy(Integer left, Integer top, Integer right, Integer bottom)
Returns a copy of this instance with the given values.
-
getLeft
@IntRange(from = 0.toLong()) abstract Integer getLeft()
The left dimension of these insets in pixels.
-
getTop
@IntRange(from = 0.toLong()) abstract Integer getTop()
The top dimension of these insets in pixels.
-
getRight
@IntRange(from = 0.toLong()) abstract Integer getRight()
The right dimension of these insets in pixels.
-
-
-
-