MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
light.hpp
Go to the documentation of this file.
1 // clang-format off
2 
3 // This file is generated. Do not edit.
4 
5 #pragma once
6 
11 #include <mbgl/style/types.hpp>
12 #include <mbgl/util/immutable.hpp>
13 
14 namespace mbgl {
15 namespace style {
16 
17 class LightObserver;
18 
19 class Light {
20 public:
21  Light();
22  ~Light();
23 
24  // Dynamic properties
25  std::optional<conversion::Error> setProperty(const std::string& name, const conversion::Convertible& value);
27 
33 
39 
40  static float getDefaultIntensity();
45 
51 
52  class Impl;
56 
57  LightObserver* observer = nullptr;
58  void setObserver(LightObserver*);
59 };
60 
61 } // namespace style
62 } // namespace mbgl
63 
64 // clang-format on
void setIntensity(PropertyValue< float >)
void setAnchor(PropertyValue< LightAnchorType >)
void setIntensityTransition(const TransitionOptions &)
void setColorTransition(const TransitionOptions &)
TransitionOptions getPositionTransition() const
TransitionOptions getColorTransition() const
static Color getDefaultColor()
LightObserver * observer
Definition: light.hpp:57
static LightAnchorType getDefaultAnchor()
std::optional< conversion::Error > setProperty(const std::string &name, const conversion::Convertible &value)
void setColor(PropertyValue< Color >)
Immutable< Impl > impl
Definition: light.hpp:52
void setPositionTransition(const TransitionOptions &)
PropertyValue< Position > getPosition() const
static Position getDefaultPosition()
TransitionOptions getAnchorTransition() const
void setPosition(PropertyValue< Position >)
PropertyValue< LightAnchorType > getAnchor() const
PropertyValue< Color > getColor() const
void setObserver(LightObserver *)
static float getDefaultIntensity()
PropertyValue< float > getIntensity() const
TransitionOptions getIntensityTransition() const
void setAnchorTransition(const TransitionOptions &)
StyleProperty getProperty(const std::string &) const
Light(Immutable< Impl >)
Mutable< Impl > mutableImpl() const
Generic representation of a style property.
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15