DefaultStyleSet

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

Functions

component1
Link copied to clipboard
common
operator fun component1(): TileColor
component2
Link copied to clipboard
common
operator fun component2(): TileColor
component3
Link copied to clipboard
common
operator fun component3(): Set<Modifier>
copy
Link copied to clipboard
common
fun copy(foregroundColor: TileColor = TileColor.defaultForegroundColor(), backgroundColor: TileColor = TileColor.defaultBackgroundColor(), modifiers: Set<Modifier> = setOf()): DefaultStyleSet
createCopy
Link copied to clipboard
common
open override fun createCopy(): DefaultStyleSet
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
withAddedModifiers
Link copied to clipboard
common
open fun withAddedModifiers(vararg modifiers: Modifier): StyleSet
Creates a copy of this StyleSet with the given modifiers added.
open override fun withAddedModifiers(modifiers: Set<Modifier>): DefaultStyleSet
Creates a copy of this StyleSet with the given modifiers added.
withBackgroundColor
Link copied to clipboard
common
open override fun withBackgroundColor(backgroundColor: TileColor): DefaultStyleSet
Creates a copy of this StyleSet with the given background color.
withForegroundColor
Link copied to clipboard
common
open override fun withForegroundColor(foregroundColor: TileColor): DefaultStyleSet
Creates a copy of this StyleSet with the given foreground color.
withModifiers
Link copied to clipboard
common
open fun withModifiers(vararg modifiers: Modifier): StyleSet
Creates a copy of this StyleSet with the given modifiers.
open override fun withModifiers(modifiers: Set<Modifier>): DefaultStyleSet
Creates a copy of this StyleSet with the given modifiers.
withNoModifiers
Link copied to clipboard
common
open override fun withNoModifiers(): DefaultStyleSet
Creates a copy of this StyleSet with no modifiers.
withRemovedModifiers
Link copied to clipboard
common
open fun withRemovedModifiers(vararg modifiers: Modifier): StyleSet
Creates a copy of this StyleSet with the given modifiers removed.
open override fun withRemovedModifiers(modifiers: Set<Modifier>): DefaultStyleSet
Creates a copy of this StyleSet with the given modifiers removed.

Properties

backgroundColor
Link copied to clipboard
common
open override val backgroundColor: TileColor
cacheKey
Link copied to clipboard
common
open override val cacheKey: String
A unique and immutable cache key for this object.
foregroundColor
Link copied to clipboard
common
open override val foregroundColor: TileColor
modifiers
Link copied to clipboard
common
open override val modifiers: Set<Modifier>

Sources

(source)
Link copied to clipboard