blob: 40f85b66b50bffd3ed37ff761ffac20e3cf45872 (
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
|
<%
const properties = locals.properties;
-%>
// This file is generated. Do not edit.
#pragma once
#include <mbgl/style/property_value.hpp>
#include <mbgl/style/transition_options.hpp>
#include <mbgl/style/types.hpp>
namespace mbgl {
class RenderLight;
namespace style {
class Light {
public:
<% 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;
<% } -%>
private:
IndexedTuple<LightProperties, LightProperties> properties;
friend class mbgl::RenderLight;
};
} // namespace style
} // namespace mbgl
|