tornadofx / tornadofx / javafx.event.EventTarget / subscene


fun EventTarget.subscene(depthBuffer: Boolean = false, antiAlias: SceneAntialiasing = SceneAntialiasing.DISABLED, width: Number? = null, height: Number? = null, op: SubScene.() -> Unit = {}): <ERROR CLASS>

Create a subscene and attach it to the current container as a child. The root node of the SubScene will be whatever is built inside the op builder parameter. If no height or width is given, the size property will be bound to its parent size.