Vibrant
Translucency view.
| Header | #include "nativeui/vibrant.h" |
| Namespace | namespace nu |
| Type | class (RefCounted) |
| Inherits | Container |
| Platforms | macOS |
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::Materialmaterial
Vibrant::Material GetMaterial() const
Get the material for the view.
Return
Vibrant::Materialvoid 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