summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/PickerTool.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-22 12:05:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-22 12:05:35 +0200
commit25fd847ef283b4073a47b604b19062f71a1f6d4c (patch)
tree9df2731c39c0dbb1f1a55b1735197b8d0b37c9d0 /Applications/PaintBrush/PickerTool.h
parent41613e4303c3bfdb168867264ffb848d1025edf7 (diff)
downloadserenity-25fd847ef283b4073a47b604b19062f71a1f6d4c.zip
PaintBrush: Add a color picker tool.
Diffstat (limited to 'Applications/PaintBrush/PickerTool.h')
-rw-r--r--Applications/PaintBrush/PickerTool.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Applications/PaintBrush/PickerTool.h b/Applications/PaintBrush/PickerTool.h
new file mode 100644
index 0000000000..78aa59e570
--- /dev/null
+++ b/Applications/PaintBrush/PickerTool.h
@@ -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"; }
+
+};