summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Path.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-08-11 17:38:35 +0100
committerAndreas Kling <kling@serenityos.org>2022-08-14 11:30:40 +0200
commit389f1ee6f54a089aa9b7b0618ed477f8a7cfd4c1 (patch)
treeab6296353428fce9130e7387d399d5eda25dae75 /Userland/Libraries/LibGfx/Path.h
parent2ec52bbbd57cabf56ec2f5b61e3846640c358146 (diff)
downloadserenity-389f1ee6f54a089aa9b7b0618ed477f8a7cfd4c1.zip
LibGfx: Add method for copying a Path with a transform applied
The Web's CanvasRenderingContext2D needs a way to draw a path with a transform applied to it, without modifying the original path, so here it is. :^)
Diffstat (limited to 'Userland/Libraries/LibGfx/Path.h')
-rw-r--r--Userland/Libraries/LibGfx/Path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Path.h b/Userland/Libraries/LibGfx/Path.h
index 7c0ba83090..662edb3732 100644
--- a/Userland/Libraries/LibGfx/Path.h
+++ b/Userland/Libraries/LibGfx/Path.h
@@ -243,6 +243,8 @@ public:
return m_bounding_box.value();
}
+ Path copy_transformed(AffineTransform const&) const;
+
String to_string() const;
private: