Known direct subclasses
CommonStyleScope

A CommonStyleScope is the scope used by a CommonStyle.


Introduces the CustomStyleScope method that allows styles to create a style property layer.

This is a separate interface to allow a CustomStyle type to decide if styleLayer is available directly in a style.

Summary

Public functions

Unit
styleLayer(block: () -> Unit)

Raise the layer of properties that are set in block.

Cmn

Public functions

styleLayer

fun styleLayer(block: () -> Unit): Unit

Raise the layer of properties that are set in block. Properties set in a layer will take precedence over properties set in the layers below it. A layer is implied by StyleStateScope.state, or helpers that use it, such as StyleStateScope.pressed and StyleStateScope.focused.

The last property set with the greatest style layer is the resolved value of a style property.