Dimensions

interface Dimensions

Defines the size of each edge of a rectangle. Used to store measurements such as padding or margin values.

Inheritors

Properties

Link copied to clipboard
abstract val bottomDp: Float

The value for the bottom edge in the dp unit.

Link copied to clipboard
abstract val endDp: Float

The value for the end edge in the dp unit.

Link copied to clipboard
abstract val startDp: Float

The value for the start edge in the dp unit.

Link copied to clipboard
abstract val topDp: Float

The value for the top edge in the dp unit.

Functions

Link copied to clipboard
open fun getLeftDp(isLtr: Boolean): Float

Returns the dimension of the left edge depending on the layout orientation.

Link copied to clipboard
open fun getRightDp(isLtr: Boolean): Float

Returns the dimension of the right edge depending on the layout orientation.