mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibGfx: Add Path::clear
This commit is contained in:
parent
bf96ad674c
commit
b6c884d20c
Notes:
sideshowbarker
2024-07-18 17:26:38 +09:00
Author: https://github.com/mattco98
Commit: b6c884d20c
Pull-request: https://github.com/SerenityOS/serenity/pull/7436
Reviewed-by: https://github.com/alimpfard
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