blob: 3cbe886d66f1d458436bf69f103f1beb9e9ee458 [file] [log] [blame]
#ifndef _RIVE_TEXT_SELECTION_PATH_HPP_
#define _RIVE_TEXT_SELECTION_PATH_HPP_
#ifdef WITH_RIVE_TEXT
#include "rive/math/rectangles_to_contour.hpp"
#include "rive/shapes/shape_paint_path.hpp"
namespace rive
{
class TextSelectionPath : public ShapePaintPath
{
public:
void update(Span<AABB> rects, float cornerRadius);
private:
RectanglesToContour m_rectanglesToContour;
void addRoundedPath(const Contour& contour, float radius, RawPath& rawPath);
};
}; // namespace rive
#endif
#endif