summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_manager_observer.hpp
blob: b8678e060aefa4686928638750388d1f0399bee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <mbgl/style/types.hpp>
#include <mbgl/text/glyph_range.hpp>
#include <mbgl/util/font_stack.hpp>

#include <exception>

namespace mbgl {

class GlyphManagerObserver {
public:
    virtual ~GlyphManagerObserver() = default;

    virtual void onGlyphsLoaded(const FontStack&, const GlyphRange&) {}
    virtual void onGlyphsError(const FontStack&, const GlyphRange&, std::exception_ptr) {}
};

} // namespace mbgl