Files
MapLibreParticleLab/include/mln/style/style_property.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

34 lines
663 B
C++

#pragma once
#include <mln/util/feature.hpp>
namespace mln {
namespace style {
/**
* @brief Generic representation of a style property.
*/
class StyleProperty {
public:
enum class Kind : uint8_t {
Undefined,
Constant,
Expression,
Transition
};
StyleProperty(Value value_, Kind kind_)
: value(std::move(value_)),
kind(kind_) {}
StyleProperty() = default;
const Value& getValue() const { return value; }
Value& getValue() { return value; }
Kind getKind() const { return kind; }
private:
Value value;
Kind kind = Kind::Undefined;
};
} // namespace style
} // namespace mln