mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
These will be used to draw out new widgets on a FormWidget, or in the case of CursorTool, to select and manipulate existing widgets.
19 lines
453 B
C++
19 lines
453 B
C++
#pragma once
|
|
|
|
#include "Tool.h"
|
|
|
|
class CursorTool final : public Tool {
|
|
public:
|
|
explicit CursorTool(FormEditorWidget& editor)
|
|
: Tool(editor)
|
|
{
|
|
}
|
|
virtual ~CursorTool() override {}
|
|
|
|
private:
|
|
virtual const char* class_name() const override { return "CursorTool"; }
|
|
virtual void on_mousedown(GMouseEvent&) override;
|
|
virtual void on_mouseup(GMouseEvent&) override;
|
|
virtual void on_mousemove(GMouseEvent&) override;
|
|
};
|