react_juce/core/View.cpp
static juce::var makeViewEventObject (const juce::NamedValueSet& props, const View& view)
        {
            auto* o = new juce::DynamicObject();

            for (auto& pair : props)
                o->setProperty(pair.name, pair.value);

            o->setProperty("target", view.getViewId());

            //TODO: Add timeStamp.

            return juce::var(o);
        }
/** A little helper for DynamicObject construction. */
A little helper for DynamicObject construction.
A little helper for DynamicObject construction .
static juce::var makeViewEventObject (const juce::NamedValueSet& props, const View& view)
        {
            auto* o = new juce::DynamicObject();
            for (auto& pair : props)
                o->setProperty(pair.name, pair.value);
            o->setProperty("target", view.getViewId());
            return juce::var(o);
        }
static juce :: var makeViewEventObject ( const juce :: NamedValueSet & props , const View & view ) { auto * o = new juce :: DynamicObject ( ) ; for ( auto & pair : props ) o -> setProperty ( pair . name , pair . value ) ; o -> setProperty ( " " , view . getViewId ( ) ) ; return juce :: var ( o ) ; }
A little helper for DynamicObject construction.
A little helper for DynamicObject construction .
//TODO: Add timeStamp.