net.dankito.utils.javafx.ui.extensions.NodeExtensions.kt Maven / Gradle / Ivy
package net.dankito.utils.javafx.ui.extensions
import javafx.scene.Node
import javafx.scene.layout.AnchorPane
import tornadofx.UIComponent
fun UIComponent.setAnchorPaneOverallAnchor(anchorValue: Double) {
this.root.setAnchorPaneOverallAnchor(anchorValue)
}
fun Node.setAnchorPaneOverallAnchor(anchorValue: Double) {
AnchorPane.setLeftAnchor(this, anchorValue)
AnchorPane.setTopAnchor(this, anchorValue)
AnchorPane.setRightAnchor(this, anchorValue)
AnchorPane.setBottomAnchor(this, anchorValue)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy