MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
background_layer.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 
7 #include <mbgl/style/layer.hpp>
8 #include <mbgl/style/filter.hpp>
10 #include <mbgl/util/color.hpp>
11 
12 namespace mbgl {
13 namespace style {
14 
15 class TransitionOptions;
16 
17 class BackgroundLayer final : public Layer {
18 public:
19  BackgroundLayer(const std::string& layerID);
20  ~BackgroundLayer() override;
21 
22  // Paint properties
23 
29 
35 
41 
42  // Private implementation
43 
44  class Impl;
45  const Impl& impl() const;
46 
49  std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
50 
51 protected:
52  // Dynamic properties
53  std::optional<conversion::Error> setPropertyInternal(const std::string& name, const conversion::Convertible& value) final;
54 
55  StyleProperty getProperty(const std::string& name) const final;
56  Value serialize() const final;
57 
58  Mutable<Layer::Impl> mutableBaseImpl() const final;
59 };
60 
61 } // namespace style
62 } // namespace mbgl
63 
64 // clang-format on
static PropertyValue< float > getDefaultBackgroundOpacity()
const PropertyValue< expression::Image > & getBackgroundPattern() const
const Impl & impl() const
Mutable< Layer::Impl > mutableBaseImpl() const final
const PropertyValue< float > & getBackgroundOpacity() const
void setBackgroundPattern(const PropertyValue< expression::Image > &)
BackgroundLayer(const std::string &layerID)
static PropertyValue< Color > getDefaultBackgroundColor()
TransitionOptions getBackgroundColorTransition() const
Value serialize() const final
void setBackgroundColorTransition(const TransitionOptions &)
static PropertyValue< expression::Image > getDefaultBackgroundPattern()
void setBackgroundColor(const PropertyValue< Color > &)
BackgroundLayer(Immutable< Impl >)
Mutable< Impl > mutableImpl() const
void setBackgroundOpacityTransition(const TransitionOptions &)
StyleProperty getProperty(const std::string &name) const final
TransitionOptions getBackgroundOpacityTransition() const
const PropertyValue< Color > & getBackgroundColor() const
TransitionOptions getBackgroundPatternTransition() const
void setBackgroundOpacity(const PropertyValue< float > &)
void setBackgroundPatternTransition(const TransitionOptions &)
std::optional< conversion::Error > setPropertyInternal(const std::string &name, const conversion::Convertible &value) final
std::unique_ptr< Layer > cloneRef(const std::string &id) const final
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
mapbox::base::Value Value
Definition: feature.hpp:11