summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_atlas_observer.hpp
blob: 9841017117afb90046cfd75afe190a2efdccef8e (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 GlyphAtlasObserver {
public:
    virtual ~GlyphAtlasObserver() = default;

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

} // namespace mbgl