FramebufferUiHost

Services a displayed plugin asks of whoever is showing it.

Functions

Link copied to clipboard
abstract fun droppedFile(index: Int): String?

The path of a file dropped on the plugin, or null. Index -1 means forget them.

Link copied to clipboard
abstract fun requestMenu(items: List<FramebufferMenuItem>, x: Int, y: Int, complete: (Int) -> Unit)

Opens a menu at a position in framebuffer pixels and returns immediately. The plugin waits on its own thread, so this must not block.

Link copied to clipboard
abstract fun setCursor(cursor: FramebufferCursor)

Asks for a mouse cursor shape.