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

commonMain.GroupElement.kt Maven / Gradle / Ivy

There is a newer version: 0.19.1
Show newest version
package com.juul.krayon.element

import com.juul.krayon.kanvas.Kanvas

public class GroupElement : Element() {

    override val tag: String get() = "group"

    override fun draw(kanvas: Kanvas) {
        children.forEach { it.draw(kanvas) }
    }

    public companion object : ElementBuilder, ElementSelector {
        override fun build(): GroupElement = GroupElement()

        override fun trySelect(element: Element): GroupElement? = element as? GroupElement
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy