Package-level declarations

Functions

Link copied to clipboard
fun Window.chooseDirectory(title: String? = null, initialDirectory: File? = null): File?

Choose a directory.

Link copied to clipboard
inline fun Window.chooseFile(vararg filters: FileChooser.ExtensionFilter): File?
inline fun Window.chooseFile(vararg filters: Pair<String, String>): File?
fun Window.chooseFile(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: FileChooser.ExtensionFilter): File?
inline fun Window.chooseFile(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: Pair<String, String>): File?

Choose a file to open.

Link copied to clipboard
inline fun Window.chooseFiles(vararg filters: FileChooser.ExtensionFilter): List<File>
inline fun Window.chooseFiles(vararg filters: Pair<String, String>): List<File>
fun Window.chooseFiles(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: FileChooser.ExtensionFilter): List<File>
inline fun Window.chooseFiles(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: Pair<String, String>): List<File>

Choose multiple files to open.

Link copied to clipboard
inline fun Window.chooseSaveFile(vararg filters: FileChooser.ExtensionFilter): File?
inline fun Window.chooseSaveFile(vararg filters: Pair<String, String>): File?
fun Window.chooseSaveFile(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: FileChooser.ExtensionFilter): File?
inline fun Window.chooseSaveFile(title: String? = null, initialDirectory: File? = null, initialFileName: String? = null, vararg filters: Pair<String, String>): File?

Choose a file to save.

Link copied to clipboard
inline fun Window.moveTo(event: ContextMenuEvent)

Move Window to specified location using ContextMenuEvent.

inline fun Window.moveTo(event: DragEvent)

Move Window to specified location using DragEvent.

inline fun Window.moveTo(event: GestureEvent)

Move Window to specified location using GestureEvent.

inline fun Window.moveTo(event: MouseEvent)

Move Window to specified location using MouseEvent.

inline fun Window.moveTo(event: TouchPoint)

Move Window to specified location using TouchPoint.

fun Window.moveTo(x: Number, y: Number)

Move Window to specified location.

Link copied to clipboard
inline fun stage(style: StageStyle = StageStyle.DECORATED, configuration: Stage.() -> Unit): Stage
inline fun stage(title: String? = null, icon: Image? = null, style: StageStyle = StageStyle.DECORATED, configuration: Stage.() -> Unit): Stage

Creates a stage with options.

Properties

Link copied to clipboard
var Stage.icon: Image

Removes old icons and set a new one to this stage.

Link copied to clipboard
var Stage.maxSize: Pair<Number, Number>

Sets maximum width and height of this Stage.

Link copied to clipboard
var Stage.minSize: Pair<Number, Number>

Sets minimum width and height of this Stage.

Link copied to clipboard
var Stage.size2: Pair<Number, Number>

Sets width and height of this Stage.

Link copied to clipboard
val Scene.stage: Stage

Get window as Stage.