OverlayedIcon

data class OverlayedIcon(val base: TypeIcon, val overlays: List<OverlayIcon> = emptyList()) : IconDescriptor(source)

An overlayed icon, which is a base icon with various overlays placed on top.

See the documentation of OverlayIcon for more information on its components.

Constructors

Link copied to clipboard
constructor(base: TypeIcon, overlays: List<OverlayIcon> = emptyList())

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard

The underlying base icon; must be square.

Link copied to clipboard

The various OverlayIcons that are overlayed on top of the base.

Functions

Link copied to clipboard
private fun createOverlayRow(icons: List<Icon>, outerSize: Int, innerSize: Number = outerSize): RowIcon

Creates a RowIcon consisting of appropriately-scaled horizontally-laid-out icons.

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

Creates or returns the described Icon.

Link copied to clipboard

Returns a new OverlayedIcon that has one extra overlay.