|
Gin
|
Base class for property components that use juce::Value for data binding. More...
#include <gin_propertycomponents.h>
Public Member Functions | |
| PropertyComponentBase (const juce::Value &valueToControl, const juce::String &propertyName) | |
| juce::Value & | getValueObject () |
Protected Member Functions | |
| void | valueChanged (juce::Value &) override |
Protected Attributes | |
| juce::Value | value |
Base class for property components that use juce::Value for data binding.
PropertyComponentBase extends JUCE's PropertyComponent to automatically sync with a Value object, handling the listener registration and refresh logic. Derived classes only need to implement the refresh() method to update their UI when the value changes.
| PropertyComponentBase::PropertyComponentBase | ( | const juce::Value & | valueToControl, |
| const juce::String & | propertyName ) |
References value.
Referenced by ColourPropertyComponent::ColourPropertyComponent(), and FilePropertyComponent::FilePropertyComponent().
| juce::Value & PropertyComponentBase::getValueObject | ( | ) |
References value.
|
overrideprotected |
|
protected |