blob: 2d7e227c1b35a8696d7d90a9f046dd5a17038380 [file] [log] [blame] [edit]
#ifndef _RIVE_SCRIPT_INPUT_STRING_HPP_
#define _RIVE_SCRIPT_INPUT_STRING_HPP_
#include "rive/generated/script_input_string_base.hpp"
#include "rive/assets/script_asset.hpp"
#include "rive/scripted/scripted_object.hpp"
#include <stdio.h>
namespace rive
{
class ScriptInputString : public ScriptInputStringBase, public ScriptInput
{
protected:
void propertyValueChanged() override;
public:
~ScriptInputString();
void initScriptedValue() override
{
ScriptInput::initScriptedValue();
auto obj = scriptedObject();
if (obj)
{
obj->setStringInput(name(), propertyValue());
}
}
bool validateForScriptInit() override { return true; }
StatusCode import(ImportStack& importStack) override;
StatusCode onAddedClean(CoreContext* context) override;
};
} // namespace rive
#endif