|
iPlug2 - C++ Audio Plug-in Framework
|
#include <array>#include <functional>#include <memory>#include "IControls.h"#include "IVTabbedPagesControl.h"#include "IVMeterControl.h"#include "ILEDControl.h"#include "IPlugFaust.h"Go to the source code of this file.
Classes | |
| class | IGraphicsFaustUI |
| Builds an IGraphics user interface from the UI description of an IPlugFaust DSP, like Faust's own generic GUIs. More... | |
| class | IGraphicsFaustUI::ButtonControl |
| A momentary button, for Faust's button() More... | |
| class | IGraphicsFaustUI::ValueDisplayControl |
| Displays a bargraph's value as text, for [style:numerical]. More... | |
| class | IGraphicsFaustUI::BoxControl |
Builds an IGraphics user interface from the UI description of an IPlugFaust DSP, like Faust's own generic GUIs.
Faust boxes become panels (hgroup/vgroup) or tabbed pages (tgroup), widgets become IVControls linked to the IPlug parameters created by IPlugFaust::CreateIPlugParameters() and bargraphs become meters/LEDs/value displays updated via their control tags. Widget metadata such as [style:knob], [style:menu{...}], [style:radio{...}], [style:led], [style:numerical], [unit:dB], [tooltip:...] and [hidden:1] is respected.
Basic usage, in the plug-in's layout function:
The control keeps a copy of the UI description, so the IGraphicsFaustUI object doesn't need to outlive it. If the DSP is recompiled (see FaustGen::SetOnCompileFunc), remove the control and create a new one. The functions used to create the controls for each widget type and to size them can be replaced to customise the UI.
Definition in file IGraphicsFaustUI.h.