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

commonMain.io.nacular.doodle.dom.HtmlFactory.kt Maven / Gradle / Ivy

There is a newer version: 0.10.2
Show newest version
package io.nacular.doodle.dom

/**
 * Created by Nicholas Eddy on 10/24/17.
 */

internal interface HtmlFactory {
    val root: HTMLElement

    fun  create(           ): T
    fun  create(tag: String): T

    fun createText (text  : String                        ): Text
    fun createImage(source: String                        ): HTMLImageElement
    fun createOrUse(tag   : String, possible: HTMLElement?): HTMLElement

    fun createInput (): HTMLInputElement
    fun createButton(): HTMLButtonElement
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy