mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
PaintBrush: Add a color picker tool.
This commit is contained in:
parent
41613e4303
commit
25fd847ef2
8 changed files with 71 additions and 2 deletions
15
Applications/PaintBrush/PickerTool.h
Normal file
15
Applications/PaintBrush/PickerTool.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include "Tool.h"
|
||||
|
||||
class PickerTool final : public Tool {
|
||||
public:
|
||||
PickerTool();
|
||||
virtual ~PickerTool() override;
|
||||
|
||||
virtual void on_mousedown(GMouseEvent&) override;
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "PickerTool"; }
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue