blob: 872cb8b8f218757eaa59b70d97e580cb446716c5 [file]
#ifndef _RIVE_TEXT_SELECTION_PATH_HPP_
#define _RIVE_TEXT_SELECTION_PATH_HPP_
#include "rive/math/rectangles_to_contour.hpp"
#include "rive/shapes/shape_paint_path.hpp"
namespace rive
{
class TextSelectionPath : public ShapePaintPath
{
public:
TextSelectionPath(
bool isLocal = true,
FillRule fillRule = FillRule::clockwise)
: ShapePaintPath(isLocal, fillRule)
{}
void update(Span<AABB> rects, float cornerRadius);
private:
RectanglesToContour m_rectanglesToContour;
void addRoundedPath(
const Contour& contour,
float radius,
RawPath& rawPath,
bool clockwise);
};
}; // namespace rive
#endif