commonMain.io.nacular.doodle.drawing.TextFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browser Show documentation
Show all versions of browser Show documentation
A pure Kotlin, UI framework for the Web and Desktop
package io.nacular.doodle.drawing
import io.nacular.doodle.dom.HTMLElement
import io.nacular.doodle.text.StyledText
import io.nacular.doodle.text.TextSpacing
import io.nacular.doodle.utils.TextAlignment
/**
* Created by Nicholas Eddy on 10/30/17.
*/
internal interface TextFactory {
fun create (text: String, font: Font? = null, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
fun create (text: StyledText, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
fun wrapped(text: String, font: Font? = null, width: Double, indent: Double = 0.0, alignment: TextAlignment, lineSpacing: Float, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
fun wrapped(text: String, font: Font? = null, indent: Double = 0.0, alignment: TextAlignment, lineSpacing: Float, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
fun wrapped(text: StyledText, width: Double, indent: Double = 0.0, alignment: TextAlignment, lineSpacing: Float, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
fun wrapped(text: StyledText, indent: Double = 0.0, alignment: TextAlignment, lineSpacing: Float, textSpacing: TextSpacing, possible: HTMLElement? = null): HTMLElement
}