blob: 4a5b5ab6caacc4a73c48f7af91d43df95cc5f2ed (
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.
*/
virtual void onNeedsRepaint() {}
virtual void onResourceError(std::exception_ptr) {}
};
} // namespace style
} // namespace mbgl
|