1 | // Aseprite |
2 | // Copyright (C) 2022 Igara Studio S.A. |
3 | // Copyright (C) 2001-2015 David Capello |
4 | // |
5 | // This program is distributed under the terms of |
6 | // the End-User License Agreement for Aseprite. |
7 | |
8 | #ifndef APP_UI_EDITOR_NAVIGATE_STATE_H_INCLUDED |
9 | #define APP_UI_EDITOR_NAVIGATE_STATE_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "app/ui/editor/state_with_wheel_behavior.h" |
13 | |
14 | namespace app { |
15 | |
16 | class NavigateState : public StateWithWheelBehavior { |
17 | public: |
18 | NavigateState(); |
19 | virtual bool onMouseDown(Editor* editor, ui::MouseMessage* msg) override; |
20 | virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override; |
21 | virtual bool onMouseMove(Editor* editor, ui::MouseMessage* msg) override; |
22 | virtual bool onKeyDown(Editor* editor, ui::KeyMessage* msg) override; |
23 | virtual bool onKeyUp(Editor* editor, ui::KeyMessage* msg) override; |
24 | protected: |
25 | void disableQuickTool() const override; |
26 | }; |
27 | |
28 | } // namespace app |
29 | |
30 | #endif |
31 | |