mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00

This patch only adds the tool along with a toolbar icon for it. It doesn't do anything yet.
24 lines
620 B
C++
24 lines
620 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Tool.h"
|
|
|
|
namespace PixelPaint {
|
|
|
|
class RectangleSelectTool final : public Tool {
|
|
public:
|
|
RectangleSelectTool();
|
|
virtual ~RectangleSelectTool();
|
|
|
|
virtual void on_mousedown(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) override;
|
|
virtual void on_mousemove(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) override;
|
|
virtual void on_mouseup(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) override;
|
|
virtual void on_second_paint(Layer const&, GUI::PaintEvent&) override;
|
|
};
|
|
|
|
}
|