Window

class Window(title: String, width: Int, height: Int) : AutoCloseable

Thread-safe API for the windowing system. On OSX, this must be called on the main thread.

Constructors

Link copied to clipboard
fun Window(title: String = "MolScope", width: Int = 800, height: Int = 600)

Types

Link copied to clipboard
inner class Slides
Link copied to clipboard
inner class WindowFeatures

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun render()

Handle input events and render the window. Call this in a loop as long as isOpen is true. On OSX, this must be called on the main thread.

Properties

Link copied to clipboard
var backgroundColor: ColorRGBA
Link copied to clipboard
val features: Window.WindowFeatures
Link copied to clipboard
var isOpen: Boolean = true

Changes to false after the window has closed. After the window has closed, it's no longer necessary to render the window.

Link copied to clipboard
val slides: Window.Slides