PixelPaint: Add option for antialiased lines

This commit is contained in:
MacDue 2022-06-01 19:09:55 +01:00 committed by Andreas Kling
commit a30c81104d
Notes: sideshowbarker 2024-07-17 10:31:48 +09:00
2 changed files with 34 additions and 2 deletions

View file

@ -26,6 +26,8 @@ public:
virtual GUI::Widget* get_properties_widget() override;
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Crosshair; }
void draw_using(GUI::Painter&, Gfx::IntPoint const& start_position, Gfx::IntPoint const& end_position, Color color, int thickness);
private:
RefPtr<GUI::Widget> m_properties_widget;
@ -34,6 +36,7 @@ private:
Gfx::IntPoint m_line_start_position;
Gfx::IntPoint m_line_end_position;
int m_thickness { 1 };
bool m_antialias_enabled { false };
};
}