blob: c82c65c10cca46fa03229269c0e6ee7ea2ac03e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<%
const properties = locals.properties;
-%>
// This file is generated. Do not edit.
#include <mbgl/style/light.hpp>
#include <mbgl/style/light_impl.hpp>
#include <mbgl/style/light_properties.hpp>
namespace mbgl {
namespace style {
Light::Light()
: impl(std::make_unique<Impl>()) {
}
Light::~Light() = default;
<% for (const property of properties) { -%>
<%- evaluatedType(property) %> Light::getDefault<%- camelize(property.name) %>() {
return Light<%- camelize(property.name) %>::defaultValue();
}
<%- propertyValueType(property) %> Light::get<%- camelize(property.name) %>() const {
return impl->properties.template get<Light<%- camelize(property.name) %>>().value;
}
void Light::set<%- camelize(property.name) %>(<%- propertyValueType(property) %> property) {
impl->properties.template get<Light<%- camelize(property.name) %>>().value = property;
impl->observer->onLightChanged(*this);
}
void Light::set<%- camelize(property.name) %>Transition(const TransitionOptions& transition) {
impl->properties.template get<Light<%- camelize(property.name) %>>().transition = transition;
impl->observer->onLightChanged(*this);
}
TransitionOptions Light::get<%- camelize(property.name) %>Transition() const {
return impl->properties.template get<Light<%- camelize(property.name) %>>().transition;
}
<% } -%>
} // namespace style
} // namespace mbgl
|