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:
parent
bc5dd8dd0f
commit
a30c81104d
2 changed files with 34 additions and 2 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue