All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes
UIConnection Class Reference

This class offers a bidirectional connection between a parameter and its UI representation. More...

Classes

class  Base
 The base class for the connection implementation of each UI widget. More...
 
class  Button
 A connection between a Processor's parameter and a juce::Button. More...
 
class  ComboBox
 A connection between a Processor's parameter and a juce::ComboBox. More...
 
class  Slider
 A connection between a Processor's parameter and a juce::Slider. More...
 

Detailed Description

This class offers a bidirectional connection between a parameter and its UI representation.

If you just want to connect one UI element to a Processor's parameter, this lets you do it with the minimal amount of code. It automatically registers as listener to both the slider and the Processor and updates each other when one of them changes.

In order to use it, just add one of these as Member variable in your interface class:

class MyInterface
{
MyInterface(hise::MainController* mc):
s("My Funky Slider"),
connection(&s, mc, "Sine 1", hise::SineSynth::SaturationAmount)
{
addAndMakeVisible(s);
s.setRange(0.0, 1.0, 0.01);
}
juce::Slider s;
raw::UIConnection::Slider connection;
}
If you just want a more generic, but unidirectional connection (Processor->UI) take a look at the Reference class.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.