1// Aseprite
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2015 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_COPY_CEL_H_INCLUDED
9#define APP_CMD_COPY_CEL_H_INCLUDED
10#pragma once
11
12#include "app/cmd/with_layer.h"
13#include "app/cmd_sequence.h"
14#include "doc/color.h"
15#include "doc/frame.h"
16
17namespace app {
18namespace cmd {
19 using namespace doc;
20
21 class CopyCel : public CmdSequence {
22 public:
23 CopyCel(
24 Layer* srcLayer, frame_t srcFrame,
25 Layer* dstLayer, frame_t dstFrame, bool continuous);
26
27 protected:
28 void onExecute() override;
29 void onFireNotifications() override;
30
31 private:
32 WithLayer m_srcLayer, m_dstLayer;
33 frame_t m_srcFrame, m_dstFrame;
34 bool m_continuous;
35 };
36
37} // namespace cmd
38} // namespace app
39
40#endif
41