openshot-audio  0.1.7
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ChoicePropertyComponent::RemapperValueSource Class Reference
Inheritance diagram for ChoicePropertyComponent::RemapperValueSource:
Value::ValueSource Value::Listener ReferenceCountedObject AsyncUpdater

Public Member Functions

 RemapperValueSource (const Value &source, const Array< var > &map)
 
var getValue () const
 
void setValue (const var &newValue)
 
- Public Member Functions inherited from Value::ValueSource
 ValueSource ()
 
virtual ~ValueSource ()
 
void sendChangeMessage (bool dispatchSynchronously)
 
- Public Member Functions inherited from ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 

Protected Member Functions

void valueChanged (Value &)
 
- Protected Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject ()
 
virtual ~ReferenceCountedObject ()
 
void resetReferenceCount () noexcept
 

Protected Attributes

Value sourceValue
 
Array< varmappings
 
- Protected Attributes inherited from Value::ValueSource
SortedSet< Value * > valuesWithListeners
 

Constructor & Destructor Documentation

◆ RemapperValueSource()

ChoicePropertyComponent::RemapperValueSource::RemapperValueSource ( const Value source,
const Array< var > &  map 
)
inline

Member Function Documentation

◆ getValue()

var ChoicePropertyComponent::RemapperValueSource::getValue ( ) const
inlinevirtual

Returns the current value of this object.

Implements Value::ValueSource.

◆ setValue()

void ChoicePropertyComponent::RemapperValueSource::setValue ( const var newValue)
inlinevirtual

Changes the current value. This must also trigger a change message if the value actually changes.

Implements Value::ValueSource.

◆ valueChanged()

void ChoicePropertyComponent::RemapperValueSource::valueChanged ( Value value)
inlineprotectedvirtual

Called when a Value object is changed.

Note that the Value object passed as a parameter may not be exactly the same object that you registered the listener with - it might be a copy that refers to the same underlying ValueSource. To find out, you can call Value::refersToSameSourceAs().

Implements Value::Listener.

Member Data Documentation

◆ mappings

Array<var> ChoicePropertyComponent::RemapperValueSource::mappings
protected

◆ sourceValue

Value ChoicePropertyComponent::RemapperValueSource::sourceValue
protected

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