WindowCommands

interface WindowCommands

Interface to talk to the window that is hosting this feature.

Should only access this from the window thread.

Functions

Link copied to clipboard
abstract fun addSlide(slide: Slide)
Link copied to clipboard
abstract fun loadImage(bytes: ByteArray): LoadedImage

Loads an image for rendering. The image and all associated resources will be automatically cleaned up when the window is cleaned up, so callers will not need to worry about cleaning up images loaded with this method.

Link copied to clipboard
abstract fun removeSlide(slide: Slide): Boolean
Link copied to clipboard
abstract fun showExceptions(block: () -> Unit)

Properties

Link copied to clipboard
abstract var shouldClose: Boolean