All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dankito.utils.javafx.ui.dialogs.WindowSizeAndPosition.kt Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package net.dankito.utils.javafx.ui.dialogs


open class WindowSizeAndPosition(var screenX: Double, var screenY: Double, var width: Double, var height: Double) {

    open val isScreenXSet: Boolean
        get() = screenX.isNaN() == false

    open val isScreenYSet: Boolean
        get() = screenY.isNaN() == false


    open val isWidthSet: Boolean
        get() = width.isNaN() == false && width > 0.0

    open val isHeightSet: Boolean
        get() = height.isNaN() == false && height > 0.0

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy