OpenShot Library | OpenShotAudio  0.2.2
juce::SimpleValueSource Class Reference
+ Inheritance diagram for juce::SimpleValueSource:

Public Member Functions

 SimpleValueSource (const var &initialValue)
 
var getValue () const override
 Returns the current value of this object. More...
 
void setValue (const var &newValue) override
 Changes the current value. More...
 
- Public Member Functions inherited from juce::Value::ValueSource
void sendChangeMessage (bool dispatchSynchronously)
 Delivers a change message to all the listeners that are registered with this value. More...
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 Increments the object's reference count. More...
 
void decReferenceCount () noexcept
 Decreases the object's reference count. More...
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count. More...
 
int getReferenceCount () const noexcept
 Returns the object's current reference count. More...
 

Additional Inherited Members

- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject ()=default
 Creates the reference-counted object (with an initial ref count of zero). More...
 
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
virtual ~ReferenceCountedObject ()
 Destructor. More...
 
void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object. More...
 
- Protected Attributes inherited from juce::Value::ValueSource
SortedSet< Value * > valuesWithListeners
 

Detailed Description

Definition at line 68 of file juce_Value.cpp.

Member Function Documentation

◆ getValue()

var juce::SimpleValueSource::getValue ( ) const
inlineoverridevirtual

Returns the current value of this object.

Implements juce::Value::ValueSource.

Definition at line 80 of file juce_Value.cpp.

◆ setValue()

void juce::SimpleValueSource::setValue ( const var newValue)
inlineoverridevirtual

Changes the current value.

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

Implements juce::Value::ValueSource.

Definition at line 85 of file juce_Value.cpp.

References juce::var::equalsWithSameType(), and juce::Value::ValueSource::sendChangeMessage().


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