All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.inkapplications.glassconsole.structures.StaticElementItem.kt Maven / Gradle / Ivy

package com.inkapplications.glassconsole.structures

import ink.ui.structures.Positioning
import ink.ui.structures.elements.UiElement

data class StaticElementItem(
    val element: UiElement.Static,
    override val position: Positioning,
    override val span: Int,
): DisplayItem

fun UiElement.Static.asDisplayItem(
    position: Positioning = Positioning.Start,
    span: Int = 1,
) = StaticElementItem(
    element = this,
    position = position,
    span = span,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy