diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-05-05 05:45:17 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-05 09:21:07 +0200 |
commit | 9f3f98d4c0c111496e35010ae3488dc172da56db (patch) | |
tree | 101aeedf16609b0abde209f759e9949f6be1cf3e /Libraries/LibGfx/Painter.h | |
parent | 73a7a589c256d1989a6e98f65c5c1b44b5248c54 (diff) | |
download | serenity-9f3f98d4c0c111496e35010ae3488dc172da56db.zip |
LibGfx: Add Painter::draw_quadratic_bezier_curve()
Also adds a QuadraticBezierCurveTo mode to Gfx::Path
Diffstat (limited to 'Libraries/LibGfx/Painter.h')
-rw-r--r-- | Libraries/LibGfx/Painter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Painter.h b/Libraries/LibGfx/Painter.h index b7b452303a..97fe226eeb 100644 --- a/Libraries/LibGfx/Painter.h +++ b/Libraries/LibGfx/Painter.h @@ -55,6 +55,7 @@ public: void draw_ellipse_intersecting(const Rect&, Color, int thickness = 1); void set_pixel(const Point&, Color); void draw_line(const Point&, const Point&, Color, int thickness = 1, bool dotted = false); + void draw_quadratic_bezier_curve(const Point& control_point, const Point&, const Point&, Color, int thickness = 1, bool dotted = false); void draw_scaled_bitmap(const Rect& dst_rect, const Gfx::Bitmap&, const Rect& src_rect); void blit(const Point&, const Gfx::Bitmap&, const Rect& src_rect, float opacity = 1.0f); void blit_dimmed(const Point&, const Gfx::Bitmap&, const Rect& src_rect); |