Files
MapLibreParticleLab/include/mln/style/light.hpp.ejs
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

52 lines
1.3 KiB
Plaintext

<%
const properties = locals.properties;
-%>
// clang-format off
// This file is generated. Do not edit.
#pragma once
#include <mln/style/conversion.hpp>
#include <mln/style/property_value.hpp>
#include <mln/style/style_property.hpp>
#include <mln/style/transition_options.hpp>
#include <mln/style/types.hpp>
#include <mln/util/immutable.hpp>
namespace mln {
namespace style {
class LightObserver;
class Light {
public:
Light();
~Light();
// Dynamic properties
std::optional<conversion::Error> setProperty(const std::string& name, const conversion::Convertible& value);
StyleProperty getProperty(const std::string&) const;
<% for (const property of properties) { -%>
static <%- evaluatedType(property) %> getDefault<%- camelize(property.name) %>();
<%- propertyValueType(property) %> get<%- camelize(property.name) %>() const;
void set<%- camelize(property.name) %>(<%- propertyValueType(property) %>);
void set<%- camelize(property.name) %>Transition(const TransitionOptions&);
TransitionOptions get<%- camelize(property.name) %>Transition() const;
<% } -%>
class Impl;
Immutable<Impl> impl;
explicit Light(Immutable<Impl>);
Mutable<Impl> mutableImpl() const;
LightObserver* observer = nullptr;
void setObserver(LightObserver*);
};
} // namespace style
} // namespace mln
// clang-format on