|
| | ValueTreePropertyWithDefault ()=default |
| | Creates an uninitialised ValueTreePropertyWithDefault object.
|
| |
| | ValueTreePropertyWithDefault (ValueTree &tree, const Identifier &propertyID, UndoManager *um) |
| | Creates a ValueTreePropertyWithDefault object for the specified property.
|
| |
| | ValueTreePropertyWithDefault (ValueTree &tree, const Identifier &propertyID, UndoManager *um, var defaultToUse) |
| | Creates an ValueTreePropertyWithDefault object for the specified property.
|
| |
| | ValueTreePropertyWithDefault (ValueTree &tree, const Identifier &propertyID, UndoManager *um, var defaultToUse, StringRef arrayDelimiter) |
| | Creates a ValueTreePropertyWithDefault object for the specified property.
|
| |
| | ValueTreePropertyWithDefault (const ValueTreePropertyWithDefault &other) |
| | Creates a ValueTreePropertyWithDefault object from another ValueTreePropertyWithDefault object.
|
| |
| | ~ValueTreePropertyWithDefault () override |
| | Destructor.
|
| |
| var | get () const noexcept |
| | Returns the current value of the property.
|
| |
| Value | getPropertyAsValue () |
| | Returns the current property as a Value object.
|
| |
| var | getDefault () const |
| | Returns the current default value.
|
| |
| void | setDefault (const var &newDefault) |
| | Sets the default value to a new var.
|
| |
| bool | isUsingDefault () const |
| | Returns true if the property does not exist in the referenced ValueTree.
|
| |
| void | resetToDefault () noexcept |
| | Removes the property from the referenced ValueTree.
|
| |
| ValueTreePropertyWithDefault & | operator= (const var &newValue) |
| | Sets the property and returns the new ValueTreePropertyWithDefault.
|
| |
| void | setValue (const var &newValue, UndoManager *undoManagerToUse) |
| | Sets the property.
|
| |
| void | referTo (ValueTree tree, const Identifier &property, UndoManager *um) |
| | Makes the ValueTreePropertyWithDefault refer to the specified property inside the given ValueTree.
|
| |
| void | referTo (ValueTree tree, const Identifier &property, UndoManager *um, var defaultVal) |
| | Makes the ValueTreePropertyWithDefault refer to the specified property inside the given ValueTree.
|
| |
| void | referTo (ValueTree tree, const Identifier &property, UndoManager *um, var defaultVal, StringRef arrayDelimiter) |
| | Makes the ValueTreePropertyWithDefault refer to the specified property inside the given ValueTree.
|
| |
| ValueTree & | getValueTree () noexcept |
| | Returns a reference to the ValueTree containing the referenced property.
|
| |
| Identifier & | getPropertyID () noexcept |
| | Returns the property ID of the referenced property.
|
| |
| const Identifier & | getPropertyID () const noexcept |
| | Returns the property ID of the referenced property.
|
| |
| UndoManager * | getUndoManager () noexcept |
| | Returns the UndoManager that is being used.
|
| |
| ValueTreePropertyWithDefault & | operator= (const ValueTreePropertyWithDefault &other) |
| |
This class acts as a wrapper around a property inside a ValueTree.
If the property inside the ValueTree is missing it will return a default value, which can be specified in the constructor or by calling setDefault().