Allolib
1.0
C++ Components For Interactive Multimedia
|
The ControlGUI class. More...
Public Member Functions | |
ControlGUI & | registerParameterMeta (ParameterMeta ¶m) |
ControlGUI & | operator<< (ParameterMeta &newParam) |
Register parameter using the streaming operator. | |
ControlGUI & | add (ParameterMeta &newParam) |
ControlGUI & | operator<< (ParameterMeta *newParam) |
Register parameter using the streaming operator. | |
ControlGUI & | add (ParameterMeta *newParam) |
ControlGUI & | registerParameterBundle (ParameterBundle &bundle) |
ControlGUI & | operator<< (ParameterBundle &newBundle) |
Register parameter using the streaming operator. | |
ControlGUI & | add (ParameterBundle &newBundle) |
ControlGUI & | operator<< (ParameterBundle *newBundle) |
Register parameter using the streaming operator. | |
ControlGUI & | add (ParameterBundle *newBundle) |
ControlGUI & | registerNav (Nav &nav) |
ControlGUI & | operator<< (Nav &nav) |
ControlGUI & | add (Nav &nav) |
ControlGUI & | registerPresetHandler (PresetHandler &presetHandler, int numRows=-1, int numColumns=-1) |
ControlGUI & | operator<< (PresetHandler &ph) |
ControlGUI & | add (PresetHandler &ph) |
ControlGUI & | operator<< (PresetHandler *ph) |
ControlGUI & | add (PresetHandler *ph) |
ControlGUI & | registerPresetSequencer (PresetSequencer &presetSequencer) |
ControlGUI & | operator<< (PresetSequencer &ps) |
ControlGUI & | add (PresetSequencer &ps) |
ControlGUI & | registerSequenceRecorder (SequenceRecorder &recorder) |
ControlGUI & | operator<< (SequenceRecorder &ps) |
ControlGUI & | add (SequenceRecorder &ps) |
ControlGUI & | registerSynthRecorder (SynthRecorder &recorder) |
ControlGUI & | operator<< (SynthRecorder &recorder) |
Register a SynthRecorder. This will display GUI widgets to control it. | |
ControlGUI & | add (SynthRecorder &recorder) |
ControlGUI & | registerSynthSequencer (SynthSequencer &seq) |
ControlGUI & | operator<< (SynthSequencer &seq) |
ControlGUI & | add (SynthSequencer &seq) |
ControlGUI & | registerDynamicScene (DynamicScene &scene) |
ControlGUI & | operator<< (DynamicScene &scene) |
ControlGUI & | add (DynamicScene &scene) |
ControlGUI & | registerMarker (GUIMarker &marker) |
ControlGUI & | operator<< (GUIMarker marker) |
ControlGUI & | add (GUIMarker marker) |
void | setTitle (std::string title) |
void | fixedPosition (bool fixed=true) |
void | draw (Graphics &g) |
draws the GUI | |
void | manageImGUI (bool manage) |
Call to set if this GUI manages ImGUI. More... | |
void | init (int x=5, int y=5, bool manageImgui=true) |
initialize ImGUI. More... | |
void | cleanup () |
bool | usingInput () |
usingInput returns true if the mouse is within the imgui window More... | |
int | getBundleCurrent (std::string bundleName) |
get currently active index for a parameter bundle registerd with the GUI More... | |
bool | getBundleIsGlobal (std::string bundleName) |
Returns true if global controls is enabled for bundle. More... | |
void | backgroundAlpha (float a) |
Set background alpha value. More... | |
float | backgroundAlpha () const |
Get background alpha value. More... | |
Static Public Member Functions | |
static GUIMarker | beginGroup (const char *groupName=nullptr) |
static GUIMarker | endGroup () |
static GUIMarker | separator () |
The ControlGUI class.
You must call init() before any draw calls.
Definition at line 85 of file al_ControlGUI.hpp.
|
inline |
Get background alpha value.
0 for transparent, 1 for opaque
Definition at line 288 of file al_ControlGUI.hpp.
|
inline |
Set background alpha value.
0 for transparent, 1 for opaque
Definition at line 281 of file al_ControlGUI.hpp.
|
inline |
get currently active index for a parameter bundle registerd with the GUI
bundleName |
Returns -1 if bundleName is not a registered bundle name
Definition at line 258 of file al_ControlGUI.hpp.
|
inline |
Returns true if global controls is enabled for bundle.
bundleName | name of the bundle to query |
Definition at line 269 of file al_ControlGUI.hpp.
void al::ControlGUI::init | ( | int | x = 5 , |
int | y = 5 , |
||
bool | manageImgui = true |
||
) |
initialize ImGUI.
x | x position for the control window |
y | y position for the control window |
manageImgui | call imgui initialization and cleanup functions |
This function must be called before anu call to begin() or draw(). If you want to use mulitple ControlGUI objects, you need to set manageImgui to false, and perform the ImGui initialization and cleanup manually
|
inline |
Call to set if this GUI manages ImGUI.
Set to false if you want to have additional ImGUI windows. You will have to handle the initialization, cleanup and begin/end calls yourself.
Definition at line 216 of file al_ControlGUI.hpp.
|
inline |
Register a SynthSequencer. This will display GUI widgets to control it Will also register the PolySynth contained within it.
Definition at line 188 of file al_ControlGUI.hpp.
|
inline |
Register a SynthSequencer. This will display GUI widgets to control it Will also register the PolySynth contained within it.
Definition at line 197 of file al_ControlGUI.hpp.
|
inline |
Register nav using the streaming operator. A set of widgets are shown to control it.
Definition at line 127 of file al_ControlGUI.hpp.
|
inline |
Register preset handler using the streaming operator. GUI widgets for preset control are shown.
Definition at line 135 of file al_ControlGUI.hpp.
|
inline |
Register preset handler using the streaming operator. GUI widgets for preset control are shown.
Definition at line 142 of file al_ControlGUI.hpp.
|
inline |
Register preset sequencer using the streaming operator. GUI widgets for preset sequencing are shown.
Definition at line 151 of file al_ControlGUI.hpp.
|
inline |
Register preset sequencer using the streaming operator. GUI widgets for preset sequencing are shown.
Definition at line 160 of file al_ControlGUI.hpp.
|
inline |
Register a SynthSequencer. This will display GUI widgets to control it Will also register the PolySynth contained within it.
Definition at line 179 of file al_ControlGUI.hpp.
|
inline |
usingInput returns true if the mouse is within the imgui window
Can be used to selectively turn off navigation when using ImGUI you should place this within your onAnimate() callback:
Note that if the call is placed outside the ImGUI begin and end calls, then the data is likely to be one frame late. This is often not a big issue and simplifies the code.
Definition at line 248 of file al_ControlGUI.hpp.