blob: 1c1270ac700b66849d47fcea3b6a0f88da04c95b (
plain)
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
|
#pragma once
#include <mbgl/util/traits.hpp>
#include <cstdint>
namespace mbgl {
enum class Update : uint8_t {
Nothing = 0,
Dimensions = 1 << 1,
Classes = 1 << 2,
RecalculateStyle = 1 << 3,
RenderStill = 1 << 4,
Repaint = 1 << 5,
AnnotationStyle = 1 << 6,
AnnotationData = 1 << 7,
};
inline Update operator| (const Update& lhs, const Update& rhs) {
return Update(mbgl::underlying_type(lhs) | mbgl::underlying_type(rhs));
}
inline Update& operator|=(Update& lhs, const Update& rhs) {
lhs = lhs | rhs;
return lhs;
}
inline bool operator& (const Update& lhs, const Update& rhs) {
return mbgl::underlying_type(lhs) & mbgl::underlying_type(rhs);
}
} // namespace mbgl
|