blob: 1d55eeee9f5255d73bc0521a4bf3c0c37c7df73b [file] [log] [blame] [edit]
#include <sstream>
#include <iomanip>
#include <array>
#include "rive/viewmodel/viewmodel_instance_boolean.hpp"
#include "rive/component_dirt.hpp"
using namespace rive;
void ViewModelInstanceBoolean::propertyValueChanged()
{
addDirt(ComponentDirt::Bindings);
#ifdef WITH_RIVE_TOOLS
if (m_changedCallback != nullptr)
{
m_changedCallback(this, propertyValue());
}
#endif
onValueChanged();
}
void ViewModelInstanceBoolean::applyValue(DataValueBoolean* dataValue)
{
propertyValue(dataValue->value());
}