57 virtual bool hasProperty (
const Identifier& propertyName)
const;
62 virtual const var& getProperty (
const Identifier& propertyName)
const;
65 virtual void setProperty (
const Identifier& propertyName,
const var& newValue);
68 virtual void removeProperty (
const Identifier& propertyName);
77 virtual bool hasMethod (
const Identifier& methodName)
const;
96 void setMethod (
Identifier methodName, var::NativeFunction
function);
106 void cloneAllProperties();
122 virtual void writeAsJSON (
OutputStream&,
int indentLevel,
bool allOnOneLine,
int maximumDecimalPlaces);
128 #if JUCE_CATCH_DEPRECATED_CODE_MISUSE 130 virtual void invokeMethod (
const Identifier&,
const var*,
int) {}
#define JUCE_API
This macro is added to all JUCE public class declarations.
Represents a string identifier, designed for accessing properties by name.
A variant class, that can be used to hold a range of primitive values.
Represents a dynamically implemented object.
Holds a set of named var objects.
NamedValueSet & getProperties() noexcept
Returns the NamedValueSet that holds the object's properties.
The base class for streams that write data to some kind of destination.
This structure is passed to a NativeFunction callback, and contains invocation details about the func...
A base class which provides methods for reference-counting.