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:
parent
bf96ad674c
commit
b6c884d20c
1 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,12 @@ public:
|
||||||
return m_split_lines.value();
|
return m_split_lines.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clear()
|
||||||
|
{
|
||||||
|
m_segments.clear();
|
||||||
|
m_split_lines.clear();
|
||||||
|
}
|
||||||
|
|
||||||
const Gfx::FloatRect& bounding_box()
|
const Gfx::FloatRect& bounding_box()
|
||||||
{
|
{
|
||||||
if (!m_bounding_box.has_value()) {
|
if (!m_bounding_box.has_value()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue