main.cesium.VRButton.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:Suppress(
"EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)
package cesium
/**
* A single button widget for toggling vr mode.
* @see Online Documentation
*
* @constructor
* @property [container] The DOM element that will contain the widget.
* @param [scene] The scene.
* @param [vrElement] The element or id to be placed into vr mode.
* Default value - `document.body`
* @see Online Documentation
*/
@JsName("\$cesium__VRButton")
external class VRButton(
var container: org.w3c.dom.Element,
scene: Scene,
vrElement: org.w3c.dom.Element? = definedExternally,
) {
/**
* Gets the view model.
* @see Online Documentation
*/
var viewModel: VRButtonViewModel
/**
* @return true if the object has been destroyed, false otherwise.
* @see Online Documentation
*/
fun isDestroyed(): Boolean
/**
* Destroys the widget. Should be called if permanently
* removing the widget from layout.
* @see Online Documentation
*/
fun destroy()
}