StyleResolverScope


The type of the scope of StyleResolver.resolve that allows the block to read the fully resolved values from a style.

Summary

Inherited functions

From androidx.compose.ui.unit.Density
open Int

Convert Dp to Int by rounding

Cmn
open Int

Convert Sp to Int by rounding

Cmn
open Dp

Convert an Int pixel value to Dp.

Cmn
open Dp

Convert a Float pixel value to a Dp

Cmn
open DpSize

Convert a Size to a DpSize.

Cmn
open Float

Convert Dp to pixels.

Cmn
open Float

Convert Sp to pixels.

Cmn
open Rect

Convert a DpRect to a Rect.

Cmn
open Size

Convert a DpSize to a Size.

Cmn
open TextUnit

Convert an Int pixel value to Sp.

Cmn
open TextUnit

Convert a Float pixel value to a Sp

Cmn
From androidx.compose.ui.unit.FontScaling
Dp

Convert Sp to Dp.

Cmn
TextUnit

Convert Dp to Sp.

Cmn
From androidx.compose.foundation.style.StylePropertyAccessorScope
Boolean
anySet(properties: Set<StyleProperty<*>>)

Returns true if any property in properties is set.

Cmn
T?
<T : Any?> getOrNull(property: StyleProperty<T>)

Returns the resolved value of property, or null if it is not set.

Cmn

Inherited properties

From androidx.compose.runtime.CompositionLocalAccessorScope
T

An extension property that allows accessing the current value of a composition local in the context of this scope.

Cmn
From androidx.compose.ui.unit.Density
Float

The logical density of the display.

Cmn
From androidx.compose.ui.unit.FontScaling
Float

Current user preference for the scaling factor for fonts.

Cmn
From androidx.compose.foundation.style.StylePropertyAccessorScope
Boolean

Returns true if a value is explicitly set for this StyleProperty.

Cmn
T

Returns the resolved value of this StyleProperty, or its default value if not set.

Cmn