SimpleColorAtom

class SimpleColorAtom(val color: AtomikColor) : Atom, ColorAtom

Convenience class to only get the Color Atom

Constructors

Link copied to clipboard
fun SimpleColorAtom(color: AtomikColor)

Functions

Link copied to clipboard
fun <T : AtomInterface> asAtom(): T?

Checks to see if this Atom implements a certain AtomInterface and if it does returns the interface

Link copied to clipboard
inline fun <T : AtomInterface> subAtom(): T?

Finds a subComponent matching a specified AtomInterface if it exists

Properties

Link copied to clipboard
open override val color: AtomikColor

the color of the UI.

Link copied to clipboard
val hasSubComponents: Boolean

Checks to see if the Atom has any subcomponents. Returns boolean

Link copied to clipboard
open val subComponents: List<Atom>

the components related to this atom, as mentioned in description

Link copied to clipboard
open override val type: AtomType

the Type of atom being displayed, such as button or text