1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibGfx: Add Path::clear

This commit is contained in:
Matthew Olsson 2021-05-24 08:25:53 -07:00 committed by Ali Mohammad Pur
parent bf96ad674c
commit b6c884d20c

View file

@ -176,6 +176,12 @@ public:
return m_split_lines.value();
}
void clear()
{
m_segments.clear();
m_split_lines.clear();
}
const Gfx::FloatRect& bounding_box()
{
if (!m_bounding_box.has_value()) {