1 | // Aseprite |
2 | // Copyright (C) 2001-2015 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_BACKGROUND_FROM_LAYER_H_INCLUDED |
8 | #define APP_CMD_BACKGROUND_FROM_LAYER_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include "app/cmd/with_layer.h" |
12 | #include "app/cmd_sequence.h" |
13 | |
14 | namespace app { |
15 | namespace cmd { |
16 | using namespace doc; |
17 | |
18 | class BackgroundFromLayer : public CmdSequence |
19 | , public WithLayer { |
20 | public: |
21 | BackgroundFromLayer(Layer* layer); |
22 | |
23 | protected: |
24 | void onExecute() override; |
25 | }; |
26 | |
27 | } // namespace cmd |
28 | } // namespace app |
29 | |
30 | #endif |
31 | |