From 9f3f98d4c0c111496e35010ae3488dc172da56db Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 5 May 2020 05:45:17 +0430 Subject: LibGfx: Add Painter::draw_quadratic_bezier_curve() Also adds a QuadraticBezierCurveTo mode to Gfx::Path --- Libraries/LibGfx/Painter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibGfx/Painter.h') 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); -- cgit v1.2.3