Horizon
tool_helper_move.hpp
1 #pragma once
2 #include "core.hpp"
3 
4 namespace horizon {
5 class ToolHelperMove : public virtual ToolBase {
6 public:
7  ToolHelperMove(class Core *c, ToolID tid) : ToolBase(c, tid)
8  {
9  }
10  static Orientation transform_orientation(Orientation orientation, bool rotate, bool reverse = false);
11 
12 protected:
13  void move_init(const Coordi &c);
14  void move_do(const Coordi &delta);
15  void move_do_cursor(const Coordi &c);
16  void move_mirror_or_rotate(const Coordi &center, bool rotate);
17 
18 private:
19  Coordi last;
20 };
21 } // namespace horizon
Definition: tool_helper_move.hpp:5
Where Tools and and documents meet.
Definition: core.hpp:232
Definition: block.cpp:9
Common interface for all Tools.
Definition: core.hpp:133