LibGfx: Add Path::clear

This commit is contained in:
Matthew Olsson 2021-05-24 08:25:53 -07:00 committed by Ali Mohammad Pur
commit b6c884d20c
Notes: sideshowbarker 2024-07-18 17:26:38 +09:00

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()) {