Gin
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PropertyComponentBase Class Reference

Base class for property components that use juce::Value for data binding. More...

#include <gin_propertycomponents.h>

Inheritance diagram for PropertyComponentBase:

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
 

Detailed Description

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.

See also
FilePropertyComponent, ColourPropertyComponent

Constructor & Destructor Documentation

◆ PropertyComponentBase()

PropertyComponentBase::PropertyComponentBase ( const juce::Value &  valueToControl,
const juce::String &  propertyName 
)

References value.

Member Function Documentation

◆ getValueObject()

juce::Value & PropertyComponentBase::getValueObject ( )

References value.

◆ valueChanged()

void PropertyComponentBase::valueChanged ( juce::Value &  )
overrideprotected

Member Data Documentation

◆ value

juce::Value PropertyComponentBase::value
protected

The documentation for this class was generated from the following file: