blob: ce653875db498b7aaa59a42d63134e3ba73956fc [file]
#include "rive/text/text_input_cursor.hpp"
#include "rive/math/mat2d.hpp"
#include "rive/text/text_input.hpp"
using namespace rive;
Core* TextInputCursor::hitTest(HitInfo*, const Mat2D&) { return nullptr; }
ShapePaintPath* TextInputCursor::localClockwisePath()
{
#ifdef WITH_RIVE_TEXT
if (!textInput()->isCursorVisible())
{
return nullptr;
}
return textInput()->rawTextInput()->cursorPath();
#else
return nullptr;
#endif
}