Debian Codegraph @

radiant/xyview/tools/ClipperTool.h

raw
1 #pragma once
2
3 #include "imousetool.h"
4
5 namespace ui
6 {
7
8 class XYMouseToolEvent;
9
10 /**
11 * The Clipper tool operates on the XY view and allows the user
12 * to place new and move existing clip points.
13 */
14 class ClipperTool :
15 public MouseTool
16 {
17 private:
18 bool _crossHairEnabled;
19
20 public:
21 ClipperTool();
22
23 const std::string& getName() override;
24 const std::string& getDisplayName() override;
25
26 Result onMouseDown(Event& ev) override;
27 Result onMouseMove(Event& ev) override;
28 Result onMouseUp(Event& ev) override;
29
30 bool alwaysReceivesMoveEvents() override;
31
32 private:
33 void dropClipPoint(XYMouseToolEvent& event);
34 };
35
36 } // namespace