ImageView

open external class ImageView : ImageView(source)

Constructors

Link copied to clipboard
constructor()

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.

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 setImage(image: NativeImage)

Sets the image for this ImageView. Note that only image formats supported by NativeImage can be used with an ImageView.

Link copied to clipboard
fun setVisible(visible: Boolean)