diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
commit | 4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch) | |
tree | 60bc7d3ccba2c54859e2e023997cc027cc67aea7 /include/llmr/style/style.hpp | |
parent | c1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff) | |
download | qtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz |
rename llmr => mbgl
Diffstat (limited to 'include/llmr/style/style.hpp')
-rw-r--r-- | include/llmr/style/style.hpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/include/llmr/style/style.hpp b/include/llmr/style/style.hpp deleted file mode 100644 index cf091ad814..0000000000 --- a/include/llmr/style/style.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef LLMR_STYLE_STYLE -#define LLMR_STYLE_STYLE - -#include <llmr/style/property_transition.hpp> -#include <llmr/style/style_source.hpp> - -#include <llmr/util/time.hpp> -#include <llmr/util/uv.hpp> - -#include <cstdint> -#include <map> -#include <string> -#include <unordered_map> -#include <vector> -#include <set> -#include <memory> - -namespace llmr { - -class Sprite; -class StyleLayer; -class StyleLayerGroup; -struct BackgroundProperties; - -class Style { -public: - struct exception : std::runtime_error { exception(const char *msg) : std::runtime_error(msg) {} }; - -public: - Style(); - - void loadJSON(const uint8_t *const data); - - size_t layerCount() const; - void updateProperties(float z, timestamp t); - - void setDefaultTransitionDuration(uint16_t duration_milliseconds = 0); - - void setAppliedClasses(const std::vector<std::string> &classes); - const std::vector<std::string> &getAppliedClasses() const; - void toggleClass(const std::string &name); - - // Updates the styling information to reflect the current array - // of applied classes. - void updateClasses(); - - bool hasTransitions() const; - - const BackgroundProperties &getBackgroundProperties() const; - -public: - std::shared_ptr<Sprite> sprite; - std::shared_ptr<StyleLayerGroup> layers; - std::vector<std::string> appliedClasses; - std::string sprite_url; - std::string glyph_url; - - -private: - PropertyTransition defaultTransition; - bool initial_render_complete = false; - - mutable uv::rwlock mtx; -}; - -} - -#endif |