TypeIcon

data class TypeIcon(val base: Icon, val text: String, val colors: List<Color>) : IconDescriptor(source)

Describes a colored icon with some text in it.

Constructors

Link copied to clipboard
constructor(base: Icon, text: String, colors: List<Color>)

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard
val base: Icon

The underlying icon which should be given color; must be square.

Link copied to clipboard
val colors: List<Color>

The colors to give to the base.

Link copied to clipboard
val text: String

The text to display inside the base.

Functions

Link copied to clipboard
open override fun get(): Icon

Creates or returns the described Icon.

Link copied to clipboard
private fun truncateWidth(icon: Icon, width: Int): Icon