forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc_diff.h
50 lines (43 loc) · 1.05 KB
/
doc_diff.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Aseprite
// Copyright (C) 2019 Igara Studio S.A.
// Copyright (C) 2018 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_DOC_DIFF_H_INCLUDED
#define APP_DOC_DIFF_H_INCLUDED
#pragma once
namespace app {
class Doc;
struct DocDiff {
bool anything : 1;
bool canvas : 1;
bool totalFrames : 1;
bool frameDuration : 1;
bool tags : 1;
bool palettes : 1;
bool layers : 1;
bool cels : 1;
bool images : 1;
bool colorProfiles : 1;
bool gridBounds : 1;
DocDiff() :
anything(false),
canvas(false),
totalFrames(false),
frameDuration(false),
tags(false),
palettes(false),
layers(false),
cels(false),
images(false),
colorProfiles(false),
gridBounds(false) {
}
};
// Useful for testing purposes to detect if two documents (after
// some kind of operation) are equivalent.
DocDiff compare_docs(const Doc* a,
const Doc* b);
} // namespace app
#endif