Vibrant

Translucency view.

Header#include "nativeui/vibrant.h"
Namespacenamespace nu
Typeclass (RefCounted)
InheritsContainer
PlatformsmacOS

This view is only implemented for macOS by wrapping NSVisualEffectView,

It is not possible to draw on this view, to display content on it you have to add the content as child view.

Constructors

Vibrant()

Create a new Vibrant view.

Class properties

const char* kClassName

The class name of this view.

Methods

void SetMaterial(Vibrant::Material material)

Set the material for the view.

Parameters

Vibrant::Material GetMaterial() const

Get the material for the view.

Return

Vibrant::Material

void SetBlendingMode(Vibrant::BlendingMode mode)

Set the blending mode for the view.

Parameters

Vibrant::BlendingMode GetBlendingMode() const

Get the blending mode for the view.

Return

Vibrant::BlendingMode