mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
feature: add support for relative view model data bind paths Co-authored-by: hernan <hernan@rive.app>
23 lines
573 B
C++
23 lines
573 B
C++
#ifndef _RIVE_DATA_BIND_PATH_REFERENCER_HPP_
|
|
#define _RIVE_DATA_BIND_PATH_REFERENCER_HPP_
|
|
#include <stdio.h>
|
|
#include "rive/data_bind/data_bind_path.hpp"
|
|
namespace rive
|
|
{
|
|
class File;
|
|
class DataBindPathReferencer
|
|
{
|
|
public:
|
|
~DataBindPathReferencer();
|
|
DataBindPath* dataBindPath() const { return m_dataBindPath; }
|
|
|
|
void copyDataBindPath(DataBindPath* dataBindPath);
|
|
void importDataBindPath(ImportStack& importStack);
|
|
void decodeDataBindPath(Span<const uint8_t>& value);
|
|
|
|
protected:
|
|
DataBindPath* m_dataBindPath = nullptr;
|
|
};
|
|
} // namespace rive
|
|
|
|
#endif |