mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:47:45 +00:00
PixelPaint: Tool properties panel
Each tool can have its own set of properties that can be modified through a panel on the right side. The tools I've added properties for are: Pen: Thickness Brush: Size Hardness Spray: Thickness Density Bucket: Threshold
This commit is contained in:
parent
544f2f3c96
commit
afd52e2576
13 changed files with 324 additions and 12 deletions
|
@ -37,9 +37,12 @@ public:
|
|||
|
||||
virtual void on_mousedown(Layer&, GUI::MouseEvent& layer_event, GUI::MouseEvent& image_event) override;
|
||||
virtual void on_mousemove(Layer&, GUI::MouseEvent& layer_event, GUI::MouseEvent& image_event) override;
|
||||
virtual GUI::Widget* get_properties_widget() override;
|
||||
|
||||
private:
|
||||
int m_size { 10 };
|
||||
RefPtr<GUI::Widget> m_properties_widget;
|
||||
int m_size { 20 };
|
||||
int m_hardness { 80 };
|
||||
Gfx::IntPoint m_last_position;
|
||||
|
||||
virtual const char* class_name() const override { return "BrushTool"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue