viewBox
fun Program.viewBox(area: Rectangle, translateMouse: Boolean = true, translateKeyboard: Boolean = true, colorType: ColorType? = null, contentScale: Double? = null, multisample: BufferMultisample? = null, f: ViewBox.() -> Unit = {}): ViewBox(source)
Create a ViewBox
Return
a newly created ViewBox
Parameters
area
a Rectangle that indicates the position and size of the view box
translateMouse
should the view box translate mouse events? default is true
translateKeyboard
should the view box translate keyboard events? default is true
f
ViewBox configuration function