mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 14:42:44 +00:00
38 lines
937 B
C++
38 lines
937 B
C++
// Aseprite
|
|
// Copyright (C) 2001-2017 David Capello
|
|
//
|
|
// This program is distributed under the terms of
|
|
// the End-User License Agreement for Aseprite.
|
|
|
|
#ifndef APP_COMMANDS_CMD_ROTATE_H_INCLUDED
|
|
#define APP_COMMANDS_CMD_ROTATE_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "app/commands/command.h"
|
|
|
|
namespace app {
|
|
|
|
class RotateCommand : public Command {
|
|
public:
|
|
RotateCommand();
|
|
Command* clone() const override { return new RotateCommand(*this); }
|
|
|
|
bool flipMask() const { return m_flipMask; }
|
|
int angle() const { return m_angle; }
|
|
|
|
protected:
|
|
bool onNeedsParams() const override { return true; }
|
|
void onLoadParams(const Params& params) override;
|
|
bool onEnabled(Context* context) override;
|
|
void onExecute(Context* context) override;
|
|
std::string onGetFriendlyName() const override;
|
|
|
|
private:
|
|
bool m_flipMask;
|
|
int m_angle;
|
|
};
|
|
|
|
} // namespace app
|
|
|
|
#endif // APP_COMMANDS_CMD_ROTATE_H_INCLUDED
|