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().
This commit is contained in:
Andreas Kling 2020-04-16 21:03:17 +02:00
commit 60c2e41079
Notes: sideshowbarker 2024-07-19 07:32:29 +09:00
6 changed files with 176 additions and 0 deletions

View file

@ -42,6 +42,7 @@ class ImageDecoder;
class Painter;
class Palette;
class PaletteImpl;
class Path;
class Point;
class Rect;
class ShareableBitmap;