addStyle

inline fun <Style> Skin.addStyle(name: String, style: Style, init: Style.() -> Unit = {}): Style

Utility function for adding existing styles to the skin. Mostly for internal use.

Return

passed style instance (for chaining).

Parameters

name

name of the style as it will appear in the Skin instance.

style

non-null existing style instance.

init

will be applied to the style instance. Inlined.