ComponentStyleSetBuilder

data class ComponentStyleSetBuilder(styles: MutableMap<ComponentState, StyleSet>) : Builder<ComponentStyleSet>

Use this to build StyleSets for your org.hexworks.zircon.api.component.Components. They will be used accordingly when the component's state changes.

Constructors

ComponentStyleSetBuilder
Link copied to clipboard
common
fun ComponentStyleSetBuilder(styles: MutableMap<ComponentState, StyleSet> = mutableMapOf())

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): ComponentStyleSet
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(styles: MutableMap<ComponentState, StyleSet> = mutableMapOf()): ComponentStyleSetBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): ComponentStyleSetBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String
withActiveStyle
Link copied to clipboard
common
fun withActiveStyle(styleSet: StyleSet): ComponentStyleSetBuilder
withDefaultStyle
Link copied to clipboard
common
fun withDefaultStyle(styleSet: StyleSet): ComponentStyleSetBuilder
withDisabledStyle
Link copied to clipboard
common
fun withDisabledStyle(styleSet: StyleSet): ComponentStyleSetBuilder
withFocusedStyle
Link copied to clipboard
common
fun withFocusedStyle(styleSet: StyleSet): ComponentStyleSetBuilder
withMouseOverStyle
Link copied to clipboard
common
fun withMouseOverStyle(styleSet: StyleSet): ComponentStyleSetBuilder

Sources

(source)
Link copied to clipboard