StyleScope


A StyleScope is the receiver scope of a Style lambda. It allows defining the properties of a style that will be used by a styleable modifier to allow customizing the look of a composable component in its default state and in states like hover, pressed, or focused readable from the state property.

The properties set on a style scope affect the styled region of a component. A component creates a styled region by using the styleable modifier.

See also
Style

Summary

Inherited functions

From androidx.compose.foundation.style.AlphaScope
Unit
alpha(value: @FloatRange(from = 0.0, to = 1.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.AnimateStyleScope
Unit
animate(
    toSpec: AnimationSpec<Float>,
    fromSpec: AnimationSpec<Float>,
    block: () -> Unit
)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.BackgroundScope
Unit
background(color: Color)

This function is deprecated. This scope type is being removed.

Cmn
Unit
background(value: Brush)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.BaselineShiftScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.BorderScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit
borderWidth(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ClipScope
Unit
clip(value: Boolean)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ColorFilterScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ContentColorScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ContentPaddingScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

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

This function is deprecated. This scope type is being removed.

Cmn
open Int

This function is deprecated. This scope type is being removed.

Cmn
open Dp

This function is deprecated. This scope type is being removed.

Cmn
open Dp

This function is deprecated. This scope type is being removed.

Cmn
open DpSize

This function is deprecated. This scope type is being removed.

Cmn
open Float

This function is deprecated. This scope type is being removed.

Cmn
open Float

This function is deprecated. This scope type is being removed.

Cmn
open Rect

This function is deprecated. This scope type is being removed.

Cmn
open Size

This function is deprecated. This scope type is being removed.

Cmn
open TextUnit

This function is deprecated. This scope type is being removed.

Cmn
open TextUnit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ExternalPaddingScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.FontFamilyScope
Unit

This function is deprecated. This scope type is being removed.

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

This function is deprecated. This scope type is being removed.

Cmn
TextUnit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.FontSizeScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.FontStyleScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.FontSynthesisScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.FontWeightScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ForegroundScope
Unit
foreground(value: Brush)

This function is deprecated. This scope type is being removed.

Cmn
Unit
foreground(value: Color)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.HyphensScope
Unit
hyphens(value: Hyphens)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.LetterSpacingScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.LineBreakScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.LineHeightScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.MaxSizeScope
Unit
maxHeight(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
maxWidth(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.MinSizeScope
Unit
minHeight(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
minWidth(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.PositionScope
Unit
bottom(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
left(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
right(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
top(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.RotationScope
Unit
rotationX(value: Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
rotationY(value: Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
rotationZ(value: Float)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ScaleScope
Unit
scaleX(value: @FloatRange(from = 0.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
scaleY(value: @FloatRange(from = 0.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ShadowScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit
dropShadow(vararg value: Shadow)

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit
innerShadow(vararg value: Shadow)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ShapeScope
Unit
shape(value: Shape)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.SizeScope
Unit
height(fraction: @FloatRange(from = 0.0, to = 1.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
height(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
width(fraction: @FloatRange(from = 0.0, to = 1.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
width(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.StylePropertyProviderScope
Unit
<T : Any?> ProvidableStyleProperty<T>.provide(value: T)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.StyleStateScope
Unit
<T : Any?> state(
    key: StyleStateKey<T>,
    block: () -> Unit,
    active: (key: StyleStateKey<T>, state: StyleState) -> Boolean
)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextAlignScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextDecorationScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextDirectionScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextIndentScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextMotionScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TextStyleScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TransformOriginScope
Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.TranslationScope
Unit
translationX(value: @FloatRange(from = 0.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
translationY(value: @FloatRange(from = 0.0) Float)

This function is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.ZIndexScope
Unit
zIndex(value: @FloatRange(from = 0.0) Float)

This function is deprecated. This scope type is being removed.

Cmn

Inherited properties

From androidx.compose.runtime.CompositionLocalAccessorScope
T

This property is deprecated. This scope type is being removed.

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

This property is deprecated. This scope type is being removed.

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

This property is deprecated. This scope type is being removed.

Cmn
From androidx.compose.foundation.style.StyleStateScope
StyleState

This property is deprecated. This scope type is being removed.

Cmn