register

inline fun Skin.register(styles: Skin.(Skin) -> Unit)

Allows to create new UI component styles with the KTX DSL. This method is very similar to the apply extension method from the standard library, but supports the DSL annotation.

Parameters

styles

will be applied to this Skin instance. Inlined.