StyleSetBuilder

data class StyleSetBuilder(foregroundColor: TileColor, backgroundColor: TileColor, modifiers: Set<Modifier>) : Builder<StyleSet>

Builder used to create StyleSets. Uses the default colors from TileColor. Modifiers are empty by default.

Constructors

StyleSetBuilder
Link copied to clipboard
common
fun StyleSetBuilder(foregroundColor: TileColor = StyleSet.defaultStyle().foregroundColor, backgroundColor: TileColor = StyleSet.defaultStyle().backgroundColor, modifiers: Set<Modifier> = StyleSet.defaultStyle().modifiers)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): StyleSet
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(foregroundColor: TileColor = StyleSet.defaultStyle().foregroundColor, backgroundColor: TileColor = StyleSet.defaultStyle().backgroundColor, modifiers: Set<Modifier> = StyleSet.defaultStyle().modifiers): StyleSetBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): StyleSetBuilder
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
withBackgroundColor
Link copied to clipboard
common
fun withBackgroundColor(backgroundColor: TileColor): StyleSetBuilder
withForegroundColor
Link copied to clipboard
common
fun withForegroundColor(foregroundColor: TileColor): StyleSetBuilder
withModifiers
Link copied to clipboard
common
fun withModifiers(vararg modifiers: Modifier): StyleSetBuilder
fun withModifiers(modifiers: Set<Modifier>): StyleSetBuilder

Sources

(source)
Link copied to clipboard