mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Make API more jucey
This commit is contained in:
parent
09d8ea8864
commit
eddf488258
2 changed files with 4 additions and 4 deletions
|
|
@ -708,14 +708,14 @@ bool var::hasProperty (const Identifier& propertyName) const noexcept
|
|||
return false;
|
||||
}
|
||||
|
||||
juce::StringArray var::getProperties() const
|
||||
Array<Identifier> var::getProperties() const
|
||||
{
|
||||
if (auto* o = getDynamicObject())
|
||||
{
|
||||
juce::StringArray names;
|
||||
Array<Identifier> names;
|
||||
|
||||
for (auto itr : o->getProperties())
|
||||
names.add (itr.name.toString());
|
||||
names.add (itr.name);
|
||||
|
||||
return names;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ public:
|
|||
/** Returns true if this variant is an object and if it has the given property. */
|
||||
bool hasProperty (const Identifier& propertyName) const noexcept;
|
||||
/** Returns property names if this variant is an object. */
|
||||
juce::StringArray getProperties() const;
|
||||
Array<Identifier> getProperties() const;
|
||||
|
||||
/** Invokes a named method call with no arguments. */
|
||||
var call (const Identifier& method) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue