AppDimens

EN Singleton object that provides functions for responsive dimension management in Jetpack Compose, acting as a gateway to the Fixed and Dynamic builders.

PT Objeto singleton que fornece funções para gerenciamento de dimensões responsivas em Jetpack Compose, agindo como um gateway para os construtores Fixed e Dynamic.

Properties

Link copied to clipboard
@get:JvmName(name = "dpDydp")
val Dp.dydp: Dp

EN Builds the adjusted Dp (defaults: LOWEST, multiView=true).

@get:JvmName(name = "spDydp")
val TextUnit.dydp: Dp

EN Builds the adjusted Dp from a TextUnit (Sp) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatDydp")
val Float.dydp: Dp

EN Builds the adjusted Dp from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intDydp")
val Int.dydp: Dp

EN Builds the adjusted Dp from an Int (defaults: LOWEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpDyem")
val Dp.dyem: TextUnit
@get:JvmName(name = "spDyem")
val TextUnit.dyem: TextUnit

EN Builds the adjusted TextUnit (Em) (defaults: LOWEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "floatDyem")
val Float.dyem: TextUnit

EN Builds the adjusted TextUnit (Em) from a Float (defaults: LOWEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "intDyem")
val Int.dyem: TextUnit

EN Builds the adjusted TextUnit (Em) from an Int (defaults: LOWEST, multiView=true, ignoring font scaling).

Link copied to clipboard
@get:JvmName(name = "hdpDydp")
val Dp.dyhdp: Dp

EN Builds the adjusted Dp (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hspDydp")
val TextUnit.dyhdp: Dp

EN Builds the adjusted Dp from a TextUnit (Sp) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatDydp")
val Float.dyhdp: Dp

EN Builds the adjusted Dp from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintDydp")
val Int.dyhdp: Dp

EN Builds the adjusted Dp from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "hdpDyem")
val Dp.dyhem: TextUnit
@get:JvmName(name = "hspDyem")
val TextUnit.dyhem: TextUnit

EN Builds the adjusted TextUnit (Em) (defaults: HIGHEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "hfloatDyem")
val Float.dyhem: TextUnit

EN Builds the adjusted TextUnit (Em) from a Float (defaults: HIGHEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "hintDyem")
val Int.dyhem: TextUnit

EN Builds the adjusted TextUnit (Em) from an Int (defaults: HIGHEST, multiView=true, ignoring font scaling).

Link copied to clipboard
@get:JvmName(name = "hdpDypx")
val Dp.dyhpx: Float
@get:JvmName(name = "hspDypx")
val TextUnit.dyhpx: Float

EN Builds the adjusted Pixel value (Float) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatDypx")
val Float.dyhpx: Float

EN Builds the adjusted Pixel value (Float) from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintDypx")
val Int.dyhpx: Float

EN Builds the adjusted Pixel value (Float) from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "hdpDysp")
val Dp.dyhsp: TextUnit
@get:JvmName(name = "hspDysp")
val TextUnit.dyhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatDysp")
val Float.dyhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintDysp")
val Int.dyhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpDypx")
val Dp.dypx: Float
@get:JvmName(name = "spDypx")
val TextUnit.dypx: Float

EN Builds the adjusted Pixel value (Float) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatDypx")
val Float.dypx: Float

EN Builds the adjusted Pixel value (Float) from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intDypx")
val Int.dypx: Float

EN Builds the adjusted Pixel value (Float) from an Int (defaults: LOWEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpDysp")
val Dp.dysp: TextUnit
@get:JvmName(name = "spDysp")
val TextUnit.dysp: TextUnit

EN Builds the adjusted TextUnit (Sp) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatDysp")
val Float.dysp: TextUnit

EN Builds the adjusted TextUnit (Sp) from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intDysp")
val Int.dysp: TextUnit

EN Builds the adjusted TextUnit (Sp) from an Int (defaults: LOWEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpFxdp")
val Dp.fxdp: Dp

EN Builds the adjusted Dp (defaults: LOWEST, multiView=true).

@get:JvmName(name = "spFxdp")
val TextUnit.fxdp: Dp

EN Builds the adjusted Dp from a TextUnit (Sp) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatFxdp")
val Float.fxdp: Dp

EN Builds the adjusted Dp from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intFxdp")
val Int.fxdp: Dp

EN Builds the adjusted Dp from an Int (defaults: LOWEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpFxem")
val Dp.fxem: TextUnit
@get:JvmName(name = "spFxem")
val TextUnit.fxem: TextUnit

EN Builds the adjusted TextUnit (Em) (defaults: LOWEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "floatFxem")
val Float.fxem: TextUnit

EN Builds the adjusted TextUnit (Em) from a Float (defaults: LOWEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "intFxem")
val Int.fxem: TextUnit

EN Builds the adjusted TextUnit (Em) from an Int (defaults: LOWEST, multiView=true, ignoring font scaling).

Link copied to clipboard
@get:JvmName(name = "hdpFxdp")
val Dp.fxhdp: Dp

EN Builds the adjusted Dp (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hspFxdp")
val TextUnit.fxhdp: Dp

EN Builds the adjusted Dp from a TextUnit (Sp) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatFxdp")
val Float.fxhdp: Dp

EN Builds the adjusted Dp from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintFxdp")
val Int.fxhdp: Dp

EN Builds the adjusted Dp from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "hdpFxem")
val Dp.fxhem: TextUnit
@get:JvmName(name = "hspFxem")
val TextUnit.fxhem: TextUnit

EN Builds the adjusted TextUnit (Em) (defaults: HIGHEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "hfloatFxem")
val Float.fxhem: TextUnit

EN Builds the adjusted TextUnit (Em) from a Float (defaults: HIGHEST, multiView=true, ignoring font scaling).

@get:JvmName(name = "hintFxem")
val Int.fxhem: TextUnit

EN Builds the adjusted TextUnit (Em) from an Int (defaults: HIGHEST, multiView=true, ignoring font scaling).

Link copied to clipboard
@get:JvmName(name = "hdpFxpx")
val Dp.fxhpx: Float
@get:JvmName(name = "hspFxpx")
val TextUnit.fxhpx: Float

EN Builds the adjusted Pixel value (Float) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatFxpx")
val Float.fxhpx: Float

EN Builds the adjusted Pixel value (Float) from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintFxpx")
val Int.fxhpx: Float

EN Builds the adjusted Pixel value (Float) from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "hdpFxsp")
val Dp.fxhsp: TextUnit
@get:JvmName(name = "hspFxsp")
val TextUnit.fxhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hfloatFxsp")
val Float.fxhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from a Float (defaults: HIGHEST, multiView=true).

@get:JvmName(name = "hintFxsp")
val Int.fxhsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from an Int (defaults: HIGHEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpFxpx")
val Dp.fxpx: Float
@get:JvmName(name = "spFxpx")
val TextUnit.fxpx: Float

EN Builds the adjusted Pixel value (Float) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatFxpx")
val Float.fxpx: Float

EN Builds the adjusted Pixel value (Float) from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intFxpx")
val Int.fxpx: Float

EN Builds the adjusted Pixel value (Float) from an Int (defaults: LOWEST, multiView=true).

Link copied to clipboard
@get:JvmName(name = "dpFxsp")
val Dp.fxsp: TextUnit
@get:JvmName(name = "spFxsp")
val TextUnit.fxsp: TextUnit

EN Builds the adjusted TextUnit (Sp) (defaults: LOWEST, multiView=true).

@get:JvmName(name = "floatFxsp")
val Float.fxsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from a Float (defaults: LOWEST, multiView=true).

@get:JvmName(name = "intFxsp")
val Int.fxsp: TextUnit

EN Builds the adjusted TextUnit (Sp) from an Int (defaults: LOWEST, multiView=true).

Functions

Link copied to clipboard
fun CalculateAvailableItemCount(itemSize: Dp, itemPadding: Dp, direction: DpQualifier = DpQualifier.HEIGHT, modifier: Modifier = Modifier, onResult: (count: Int) -> Unit)

EN Calculates the maximum number of items that can fit in a Composable container.

Link copied to clipboard
fun Dp.dynamic(ignoreMultiViewAdjustment: Boolean = false): AppDimensDynamic

EN Initializes the AppDimensDynamic builder from a Dp, allowing for customizations.

fun TextUnit.dynamic(ignoreMultiViewAdjustment: Boolean = false): AppDimensDynamic

EN Initializes the AppDimensDynamic builder from a TextUnit (Sp), converting it to Dp first.

fun Float.dynamic(ignoreMultiViewAdjustment: Boolean = false): AppDimensDynamic

EN Initializes the AppDimensDynamic builder from a Float, converting it to Dp first.

fun Int.dynamic(ignoreMultiViewAdjustment: Boolean = false): AppDimensDynamic

EN Initializes the AppDimensDynamic builder from an Int, converting it to Dp first.

Link copied to clipboard
fun Int.dynamicDp(type: ScreenType = ScreenType.LOWEST): Dp

EN Converts Int to Dp and applies dimension adjustment.

fun Dp.dynamicDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Builds the adjusted Dp.

fun TextUnit.dynamicDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Converts TextUnit (Sp) to Dp and applies dimension adjustment.

fun Float.dynamicDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Converts Float to Dp and applies dimension adjustment.

Link copied to clipboard
fun Int.dynamicEm(type: ScreenType = ScreenType.LOWEST): TextUnit

EN Converts Int to Dp, applies dimension adjustment, and returns in Em (ignoring font scaling).

fun Dp.dynamicEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Builds the adjusted TextUnit (Em), ignoring font scaling.

fun TextUnit.dynamicEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Applies dimension adjustment directly to the TextUnit (Em), ignoring font scaling.

fun Float.dynamicEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Float to Dp, applies dimension adjustment, and returns in Em (ignoring font scaling).

Link copied to clipboard
fun Float.dynamicPer(type: ScreenType = ScreenType.LOWEST): Float

EN Calculates a dynamic Float value, treating the Float receiver as the percentage.

Link copied to clipboard
fun dynamicPercentage(percentage: Float, type: ScreenType = ScreenType.LOWEST): Float

EN Calculates a dynamic dimension value based on a percentage (0.0 to 1.0) of the screen dimension.

Link copied to clipboard
fun dynamicPercentageDp(percentage: Float, type: ScreenType = ScreenType.LOWEST): Dp

EN Calculates a dynamic Dp value based on a percentage of the screen dimension.

Link copied to clipboard
fun Float.dynamicPerDp(type: ScreenType = ScreenType.LOWEST): Dp

EN Calculates a dynamic Dp value, treating the Float receiver as the percentage.

Link copied to clipboard
fun Float.dynamicPerEm(type: ScreenType = ScreenType.LOWEST): TextUnit

Calculates a dynamic TextUnit (Em) value, treating the Float receiver as the percentage and ignoring font scaling.

Link copied to clipboard
fun Float.dynamicPerSp(type: ScreenType = ScreenType.LOWEST): TextUnit

EN Calculates a dynamic TextUnit (Sp) value, treating the Float receiver as the percentage.

Link copied to clipboard
fun dynamicPerToEm(percentage: Float, type: ScreenType = ScreenType.LOWEST): TextUnit

EN Calculates a dynamic TextUnit (Em) value based on a percentage of the screen dimension, ignoring font scaling.

Link copied to clipboard
fun dynamicPerToSp(percentage: Float, type: ScreenType = ScreenType.LOWEST): TextUnit

EN Calculates a dynamic TextUnit (Sp) value based on a percentage of the screen dimension.

Link copied to clipboard
fun Int.dynamicPx(type: ScreenType = ScreenType.LOWEST): Float

EN Converts Int to Dp, applies dimension adjustment, and returns in Pixels (Float).

fun Dp.dynamicPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Builds the adjusted Pixel value (Float).

fun TextUnit.dynamicPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Converts TextUnit (Sp) to Dp, applies dimension adjustment, and returns in Pixels (Float).

fun Float.dynamicPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Converts Float to Dp, applies dimension adjustment, and returns in Pixels (Float).

Link copied to clipboard
fun Int.dynamicSp(type: ScreenType = ScreenType.LOWEST): TextUnit

EN Converts Int to Dp, applies dimension adjustment, and returns in Sp.

fun Dp.dynamicSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Builds the adjusted TextUnit (Sp).

fun TextUnit.dynamicSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Applies dimension adjustment directly to the TextUnit (Sp).

fun Float.dynamicSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Float to Dp, applies dimension adjustment, and returns in Sp.

Link copied to clipboard
fun Dp.fixed(ignoreMultiViewAdjustment: Boolean = false): AppDimensFixed

EN Initializes the AppDimensFixed builder from a Dp, allowing for customizations.

fun TextUnit.fixed(ignoreMultiViewAdjustment: Boolean = false): AppDimensFixed

EN Initializes the AppDimensFixed builder from a TextUnit (Sp), converting it to Dp first.

fun Float.fixed(ignoreMultiViewAdjustment: Boolean = false): AppDimensFixed

EN Initializes the AppDimensFixed builder from a Float, converting it to Dp first.

fun Int.fixed(ignoreMultiViewAdjustment: Boolean = false): AppDimensFixed

EN Initializes the AppDimensFixed builder from an Int, converting it to Dp first.

Link copied to clipboard
fun Dp.fixedDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Builds the adjusted Dp.

fun TextUnit.fixedDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Converts TextUnit (Sp) to Dp and applies dimension adjustment.

fun Float.fixedDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Converts Float to Dp and applies dimension adjustment.

fun Int.fixedDp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Dp

EN Converts Int to Dp and applies dimension adjustment.

Link copied to clipboard
fun Dp.fixedEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Builds the adjusted TextUnit (Em), ignoring font scaling.

fun TextUnit.fixedEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Applies dimension adjustment directly to the TextUnit (Em), ignoring font scaling.

fun Float.fixedEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Float to Dp, applies dimension adjustment, and returns in Em (ignoring font scaling).

fun Int.fixedEm(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Int to Dp, applies dimension adjustment, and returns in Em (ignoring font scaling).

Link copied to clipboard
fun Dp.fixedPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

Builds the adjusted Pixel value (Float).

fun TextUnit.fixedPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Converts TextUnit (Sp) to Dp, applies dimension adjustment, and returns in Pixels (Float).

fun Float.fixedPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Converts Float to Dp, applies dimension adjustment, and returns in Pixels (Float).

fun Int.fixedPx(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): Float

EN Converts Int to Dp, applies dimension adjustment, and returns in Pixels (Float).

Link copied to clipboard
fun Dp.fixedSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Builds the adjusted TextUnit (Sp).

fun TextUnit.fixedSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Applies dimension adjustment directly to the TextUnit (Sp).

fun Float.fixedSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Float to Dp, applies dimension adjustment, and returns in Sp.

fun Int.fixedSp(type: ScreenType = ScreenType.LOWEST, ignoreMultiWindows: Boolean = true): TextUnit

EN Converts Int to Dp, applies dimension adjustment, and returns in Sp.