Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

This is a delicate API that exposes the raw attribute backing without any type safety. This is frequently used by the internals of Krayon, but is likely something you shouldn't use as a library consumer. That said, it's still exposed for the cases where it's necessary. When using this, be very careful not to clobber existing attributes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var data: Any?
Link copied to clipboard
var kind: String?

Analogous to an HTML class, except you can only have one.

Link copied to clipboard
var left: Float
Link copied to clipboard
Link copied to clipboard
open var parent: Element?
Link copied to clipboard
Link copied to clipboard
open override val tag: String
Link copied to clipboard
var top: Float

Functions

Link copied to clipboard
open fun <E : Element> appendChild(child: E): E
Link copied to clipboard
open override fun draw(kanvas: Kanvas)
Link copied to clipboard
open override fun getInteractionPath(): Path

The path used for hit detection.

Link copied to clipboard
open fun <E : Element> insertBefore(child: E, reference: Element?): E
Link copied to clipboard
fun matches(selector: ElementSelector<*>): Boolean
Link copied to clipboard

Set the ClickHandler for this element.

Link copied to clipboard

Set the HoverHandler for this element.

Link copied to clipboard
open fun <E : Element> query(selector: ElementSelector<E>): E?
Link copied to clipboard
open fun <E : Element> queryAll(selector: ElementSelector<E>): Sequence<E>
Link copied to clipboard
fun <E : Element> removeChild(child: E): E
Link copied to clipboard
open override fun toString(): String