1// Aseprite
2// Copyright (C) 2019-2020 Igara Studio S.A.
3// Copyright (C) 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_DOC_DIFF_H_INCLUDED
9#define APP_DOC_DIFF_H_INCLUDED
10#pragma once
11
12namespace app {
13 class Doc;
14
15 struct DocDiff {
16 bool anything : 1;
17 bool canvas : 1;
18 bool totalFrames : 1;
19 bool frameDuration : 1;
20 bool tags : 1;
21 bool palettes : 1;
22 bool tilesets : 1;
23 bool layers : 1;
24 bool cels : 1;
25 bool images : 1;
26 bool colorProfiles : 1;
27 bool gridBounds : 1;
28
29 DocDiff() :
30 anything(false),
31 canvas(false),
32 totalFrames(false),
33 frameDuration(false),
34 tags(false),
35 palettes(false),
36 tilesets(false),
37 layers(false),
38 cels(false),
39 images(false),
40 colorProfiles(false),
41 gridBounds(false) {
42 }
43 };
44
45 // Useful for testing purposes to detect if two documents (after
46 // some kind of operation) are equivalent.
47 DocDiff compare_docs(const Doc* a,
48 const Doc* b);
49
50} // namespace app
51
52#endif
53