WebContentsView

Constructors

Link copied to clipboard
constructor(options: WebContentsViewConstructorOptions = definedExternally)

WebContentsView

Properties

Link copied to clipboard
open override val boundsChangedEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val children: ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/View>

A View[] property representing the child views of this view.

Link copied to clipboard

A WebContents property containing a reference to the displayed WebContents. Use this to interact with the WebContents, for instance to load a URL.

Functions

Link copied to clipboard
fun addChildView(view: View, index: Double = definedExternally)

If the same View is added to a parent which already contains it, it will be reordered such that it becomes the topmost view.

Link copied to clipboard

The bounds of this View, relative to its parent.

Link copied to clipboard

Whether the view should be drawn. Note that this is different from whether the view is visible on screen—it may still be obscured or out of view.

Link copied to clipboard

If the view passed as a parameter is not a child of this view, this method is a no-op.

Link copied to clipboard

Examples of valid color values:

Link copied to clipboard
fun setBorderRadius(radius: Double)
Link copied to clipboard
fun setBounds(bounds: Rectangle)
Link copied to clipboard
fun setVisible(visible: Boolean)