summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Forward.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-16 21:03:17 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-16 21:04:46 +0200
commit60c2e41079c94ed30c53f8c1ba167d24247aa875 (patch)
tree87cdbb96947fe6d303b02286f5f09a8a1e67997e /Libraries/LibGfx/Forward.h
parent72df9c741746a16125a46b6e2be567c45925911e (diff)
downloadserenity-60c2e41079c94ed30c53f8c1ba167d24247aa875.zip
LibGfx: Add Gfx::Path, a basic 2D path with <canvas> semantics
This will be used to implement painting of 2D paths. This first patch adds support for line_to(), move_to() and close(). It will try to have the same semantics as the HTML <canvas> element. To stroke a Path, simply pass it to Painter::stroke_path().
Diffstat (limited to 'Libraries/LibGfx/Forward.h')
-rw-r--r--Libraries/LibGfx/Forward.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Forward.h b/Libraries/LibGfx/Forward.h
index 37946b3b43..6a6378c9b2 100644
--- a/Libraries/LibGfx/Forward.h
+++ b/Libraries/LibGfx/Forward.h
@@ -42,6 +42,7 @@ class ImageDecoder;
class Painter;
class Palette;
class PaletteImpl;
+class Path;
class Point;
class Rect;
class ShareableBitmap;