blob: 19c4b9b9a4445fc958e7b02217f193edbdf3f5d0 [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()->isFocused())
{
return nullptr;
}
return textInput()->rawTextInput()->cursorPath();
#else
return nullptr;
#endif
}