MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
style_property.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <mbgl/util/feature.hpp>
4 
5 namespace mbgl {
6 namespace style {
7 
12 public:
13  enum class Kind : uint8_t { Undefined, Constant, Expression, Transition };
14  StyleProperty(Value value_, Kind kind_) : value(std::move(value_)), kind(kind_) {}
15  StyleProperty() = default;
16  const Value& getValue() const { return value; }
17  Value& getValue() { return value; }
18  Kind getKind() const { return kind; }
19 
20 private:
21  Value value;
22  Kind kind = Kind::Undefined;
23 };
24 
25 } // namespace style
26 } // namespace mbgl
Generic representation of a style property.
StyleProperty(Value value_, Kind kind_)
const Value & getValue() const
Definition: actor.hpp:15
mapbox::base::Value Value
Definition: feature.hpp:11
Definition: tile_id.hpp:256