blob: 3bdca17ba001854ad5b7118fb6fc0de0b485f0bb [file] [log] [blame]
#ifndef _RIVE_TEXT_VALUE_RUN_HPP_
#define _RIVE_TEXT_VALUE_RUN_HPP_
#include "rive/generated/text/text_value_run_base.hpp"
namespace rive
{
class TextStyle;
class TextValueRun : public TextValueRunBase
{
public:
StatusCode onAddedClean(CoreContext* context) override;
StatusCode onAddedDirty(CoreContext* context) override;
TextStyle* style() { return m_style; }
uint32_t offset() const;
protected:
void textChanged() override;
void styleIdChanged() override;
private:
TextStyle* m_style = nullptr;
};
} // namespace rive
#endif