1// Aseprite
2// Copyright (C) 2001-2017 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_COMMANDS_CMD_ROTATE_H_INCLUDED
8#define APP_COMMANDS_CMD_ROTATE_H_INCLUDED
9#pragma once
10
11#include "app/commands/command.h"
12
13namespace app {
14
15 class RotateCommand : public Command {
16 public:
17 RotateCommand();
18
19 bool flipMask() const { return m_flipMask; }
20 int angle() const { return m_angle; }
21
22 protected:
23 bool onNeedsParams() const override { return true; }
24 void onLoadParams(const Params& params) override;
25 bool onEnabled(Context* context) override;
26 void onExecute(Context* context) override;
27 std::string onGetFriendlyName() const override;
28
29 private:
30 bool m_flipMask;
31 int m_angle;
32 };
33
34} // namespace app
35
36#endif // APP_COMMANDS_CMD_ROTATE_H_INCLUDED
37