androidx.compose.ui.unit
Interfaces
Density |
A density of the screen. |
Classes
Constraints |
Immutable constraints used for measuring layouts, usually as part of parent layouts or layout modifiers. |
Dp |
Dimension value representing device-independent pixels (dp). |
DpOffset |
A two-dimensional offset using Dp for units |
DpRect |
A four dimensional bounds using Dp for units |
IntOffset |
A two-dimensional position using Int pixels for units |
IntRect |
An immutable, 2D, axis-aligned, integer bounds rectangle whose coordinates are relative to a given origin. |
IntSize |
A two-dimensional size class used for measuring in Int pixels. |
TextUnit |
The unit used for text related dimension value. |
Velocity |
A two dimensional velocity in pixels per second. |
Enums
LayoutDirection |
A class for defining layout directions. |
TextUnitType |
An enum class defining for type of TextUnit. |
Top-level functions summary
Constraints |
Constraints(minWidth: Int = 0, maxWidth: Int = Constraints.Infinity, minHeight: Int = 0, maxHeight: Int = Constraints.Infinity) Create a Constraints. |
Density | |
Density |
A density of the screen. |
DpOffset | |
IntOffset | |
IntRect |
Construct a rectangle from its left and top edges as well as its width and height. |
IntRect |
Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin. |
IntRect |
Construct a rectangle that bounds the given circle |
IntSize | |
Velocity |
Constructs an Velocity from the given relative x and y velocities. |
Dp |
Linearly interpolate between two Dps. |
DpOffset |
Linearly interpolate between two DpOffsets. |
IntOffset |
Linearly interpolate between two IntOffsets. |
IntRect |
Linearly interpolate between two rectangles. |
TextUnit |