blob: 2c481146693d10f3ea76081664414c1e4852c689 (
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
|
#pragma once
#include <mbgl/text/glyph_store_observer.hpp>
#include <mbgl/sprite/sprite_store_observer.hpp>
#include <mbgl/style/source_observer.hpp>
namespace mbgl {
namespace style {
class Observer : public GlyphStoreObserver,
public SpriteStoreObserver,
public SourceObserver {
public:
/**
* In addition to the individual glyph, sprite, and source events, the
* following "rollup" events are provided for convenience. They are
* strictly additive; e.g. when a source is loaded, both `onSourceLoaded`
* and `onNeedsRepaint` will be called.
*/
void onNeedsRepaint() override {}
virtual void onResourceError(std::exception_ptr) {}
};
} // namespace style
} // namespace mbgl
|