commonMain.io.nacular.doodle.drawing.RenderManager.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.View
import io.nacular.doodle.geometry.Rectangle
/**
* An internal manger that handles all render operations within an app.
*/
public interface RenderManager {
/**
* Renders the given [View] during the next render cycle. This has no effect
* if the given [View] is not currently added to the [Display][io.nacular.doodle.core.Display].
*
* @param view
*/
public fun render(view: View)
/**
* Renders the given [View] immediately, without waiting until the next render cycle. This has no effect
* if the given [View] is not currently added to the [Display][io.nacular.doodle.core.Display].
*
* @param view
*/
public fun renderNow(view: View)
public fun layout(view: View)
public fun layoutNow(view: View)
/**
* @param of
* @return the [View]'s current display rectangle (in its coordinate system) based on clipping with ancestor display rectangles.
*/
public fun displayRect(of: View): Rectangle
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy