Gradient view

Hello! I am trying to add a gradient background using VSTGUI::CGradientView. However, I noticed that to use it I need to create a gradient and call the setGradient() method. Then, to create the gradient I need a path and a context. Is there any other way to just add a gradient layer without creating a gradient/context ? Are there any examples on how to use CGradientView?

Thank you!

You can call CGradient::create (…)

1 Like