1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

PixelPaint: Add option for antialiased lines

This commit is contained in:
MacDue 2022-06-01 19:09:55 +01:00 committed by Andreas Kling
parent bc5dd8dd0f
commit a30c81104d
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 };
};
}