1// Aseprite
2// Copyright (C) 2001-2018 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_CMD_DESELECT_MASK_H_INCLUDED
8#define APP_CMD_DESELECT_MASK_H_INCLUDED
9#pragma once
10
11#include "app/cmd.h"
12#include "app/cmd/with_document.h"
13
14#include <memory>
15
16namespace doc {
17 class Mask;
18}
19
20namespace app {
21namespace cmd {
22 using namespace doc;
23
24 class DeselectMask : public Cmd
25 , public WithDocument {
26 public:
27 DeselectMask(Doc* doc);
28
29 protected:
30 void onExecute() override;
31 void onUndo() override;
32 size_t onMemSize() const override;
33
34 private:
35 std::unique_ptr<Mask> m_oldMask;
36 };
37
38} // namespace cmd
39} // namespace app
40
41#endif
42