VisualEffectView

A background control that adds translucency and vibrancy effects to the GUI.

Class / Control

Inherits from View

macOS only! Becomes a normal Canvas on other systems.

Usually you drag a VisualEffectView onto the IDE, set its properties there and place controls on it. For experiments with custom controls, the class has a Constructor method too.

Overview

Methods

Properties

Enumerations

Documentation

Methods

Constructor(x As Double, y As Double, w As Double, h As Double)

Creates a new VisualEffectView in code. Keep in mind that on macOS the y axis is reversed!

Properties

Specifies how the view’s contents are blurred. Default is BehindWindow.

Emphasized As Boolean

If the view should draw in "first responder" status, or not. Available since macOS 10.12.

InteriorBackgroundStyle As AppKitAddition.NSBackgroundStyle

The view’s interior background style. (read-only)

MaskImage As Picture

An image whose alpha channel masks the visual effect view's material.

The material shown by the visual effect view. Please note several items have been deprecated and several new ones added with macOS Mojave.

Whether a view has a visual effect applied.

Enumerations

NSVisualEffectBlendingMode

A value indicating how the view’s contents blend with the surrounding content. Values:

NSVisualEffectMaterial

The material shown by the visual effect view. Deprecations and additions since macOS 10.14. Values:

NSVisualEffectState

A value that indicates whether and when a view has a visual effect applied. Values:

Last updated