StyleSet

interface StyleSet : Cacheable, Copiable<StyleSet>

Represents style information which is handled by Zircon like

  • background color

  • foreground color and

  • modifiers and a set of useful operations on them.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

createCopy
Link copied to clipboard
common
abstract fun createCopy(): StyleSet
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open 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.
abstract fun withAddedModifiers(modifiers: Set<Modifier>): StyleSet
Creates a copy of this StyleSet with the given modifiers added.
withBackgroundColor
Link copied to clipboard
common
abstract fun withBackgroundColor(backgroundColor: TileColor): StyleSet
Creates a copy of this StyleSet with the given background color.
withForegroundColor
Link copied to clipboard
common
abstract fun withForegroundColor(foregroundColor: TileColor): StyleSet
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.
abstract fun withModifiers(modifiers: Set<Modifier>): StyleSet
Creates a copy of this StyleSet with the given modifiers.
withNoModifiers
Link copied to clipboard
common
abstract fun withNoModifiers(): StyleSet
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.
abstract fun withRemovedModifiers(modifiers: Set<Modifier>): StyleSet
Creates a copy of this StyleSet with the given modifiers removed.

Properties

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

Inheritors

Tile
Link copied to clipboard
DefaultStyleSet
Link copied to clipboard

Sources

(source)
Link copied to clipboard