-
coerceAtLeast
Ensures that this value is not less than the specified minimumValue.
-
coerceAtMost
Ensures that this value is not greater than the specified maximumValue.
-
coerceIn
Ensures that this value lies in the specified range minimumValue.
-
constrain
Takes otherConstraints and returns the result of coercing them in the current constraints.
-
constrainHeight
Takes a height and returns the closest size to it that satisfies the constraints.
-
Constraints
Create a Constraints.
-
constrainWidth
Takes a width and returns the closest size to it that satisfies the constraints.
-
Density
A density of the screen.
-
DpOffset
Constructs a DpOffset from x and y position Dp values.
-
DpSize
Constructs a DpSize from width and height Dp values.
-
IntOffset
Constructs a IntOffset from x and y position Int values.
-
IntRect
Construct a rectangle from its left and top edges as well as its width and height.
-
IntSize
Constructs an IntSize from width and height Int values.
-
isSatisfiedBy
Takes a size and returns whether it satisfies the current constraints.
-
lerp
Linearly interpolate between two IntOffsets.
- max
- min
- minus
-
offset
Returns the Constraints obtained by offsetting the current instance with the given values.
- plus
-
round
Round a Offset down to the nearest Int coordinates.
-
roundToIntRect
Rounds a Rect to an IntRect
-
roundToIntSize
Convert a Size to an IntSize.
-
takeOrElse
If this TextUnit isSpecified then this is returned, otherwise block is executed and its result is returned.
-
TextUnit
Construct a new TextUnit.
-
times
Multiply a TextUnit by a scalar.
-
toIntRect
Convert a IntSize to a IntRect.
-
toIntSize
Convert a Size to an IntSize.
-
toOffset
Converts the IntOffset to an Offset.
-
toRect
Converts an IntRect to a Rect
- toSize
-
Velocity
Constructs an Velocity from the given relative x and y velocities.
Compose UI Unit
Jetpack Compose API reference for ui-unit.