destroy

fun destroy()

Destroys this window, removing it from the scene and triggering onDestroy.