commonMain.io.nacular.doodle.drawing.GraphicsSurface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-jvm Show documentation
Show all versions of core-jvm Show documentation
A pure Kotlin, UI framework for the Web and Desktop
package io.nacular.doodle.drawing
import io.nacular.doodle.core.Internal
import io.nacular.doodle.geometry.Point
import io.nacular.doodle.geometry.Polygon
import io.nacular.doodle.geometry.Rectangle
import io.nacular.doodle.geometry.Size
@Internal
public interface GraphicsSurface {
public var position : Point
public var size : Size
public var bounds : Rectangle
get( ) = Rectangle(position, size)
set(new) { position = new.position; size = new.size }
public var index : Int
public var zOrder : Int
public var visible : Boolean
public var opacity : Float
public var transform : AffineTransform
public var mirrored : Boolean
public var clipCanvasToBounds: Boolean
public var childrenClipPoly : Polygon?
public fun render(block: (Canvas) -> Unit)
public fun release()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy