1 | // Aseprite |
2 | // Copyright (C) 2019 Igara Studio S.A. |
3 | // Copyright (C) 2001-2018 David Capello |
4 | // |
5 | // This program is distributed under the terms of |
6 | // the End-User License Agreement for Aseprite. |
7 | |
8 | #ifndef APP_CMD_FLATTEN_LAYERS_H_INCLUDED |
9 | #define APP_CMD_FLATTEN_LAYERS_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "app/cmd/with_sprite.h" |
13 | #include "app/cmd_sequence.h" |
14 | #include "doc/object_ids.h" |
15 | #include "doc/selected_layers.h" |
16 | |
17 | namespace app { |
18 | namespace cmd { |
19 | |
20 | class FlattenLayers : public CmdSequence |
21 | , public WithSprite { |
22 | public: |
23 | FlattenLayers(doc::Sprite* sprite, |
24 | const doc::SelectedLayers& layers, |
25 | const bool newBlendMethod); |
26 | |
27 | protected: |
28 | void onExecute() override; |
29 | |
30 | private: |
31 | doc::ObjectIds m_layerIds; |
32 | bool m_newBlendMethod; |
33 | }; |
34 | |
35 | } // namespace cmd |
36 | } // namespace app |
37 | |
38 | #endif |
39 | |