#include <sstream>
#include <iomanip>
#include <array>

#include "rive/viewmodel/viewmodel_instance_symbol_list_index.hpp"
#include "rive/component_dirt.hpp"

using namespace rive;

void ViewModelInstanceSymbolListIndex::propertyValueChanged()
{
    addDirt(ComponentDirt::Bindings);
#ifdef WITH_RIVE_TOOLS
    if (m_changedCallback != nullptr)
    {
        m_changedCallback(this, propertyValue());
    }
#endif
    onValueChanged();
}

void ViewModelInstanceSymbolListIndex::applyValue(DataValueInteger* dataValue)
{
    propertyValue(dataValue->value());
}