Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
65 lines
2.0 KiB
C++
65 lines
2.0 KiB
C++
// clang-format off
|
|
|
|
// This file is generated. Do not edit.
|
|
|
|
#pragma once
|
|
|
|
#include <mln/style/layer.hpp>
|
|
#include <mln/style/filter.hpp>
|
|
#include <mln/style/property_value.hpp>
|
|
#include <mln/util/color.hpp>
|
|
|
|
namespace mln {
|
|
namespace style {
|
|
|
|
class TransitionOptions;
|
|
|
|
class BackgroundLayer final : public Layer {
|
|
public:
|
|
BackgroundLayer(const std::string& layerID);
|
|
~BackgroundLayer() override;
|
|
|
|
// Paint properties
|
|
|
|
static PropertyValue<Color> getDefaultBackgroundColor();
|
|
const PropertyValue<Color>& getBackgroundColor() const;
|
|
void setBackgroundColor(const PropertyValue<Color>&);
|
|
void setBackgroundColorTransition(const TransitionOptions&);
|
|
TransitionOptions getBackgroundColorTransition() const;
|
|
|
|
static PropertyValue<float> getDefaultBackgroundOpacity();
|
|
const PropertyValue<float>& getBackgroundOpacity() const;
|
|
void setBackgroundOpacity(const PropertyValue<float>&);
|
|
void setBackgroundOpacityTransition(const TransitionOptions&);
|
|
TransitionOptions getBackgroundOpacityTransition() const;
|
|
|
|
static PropertyValue<expression::Image> getDefaultBackgroundPattern();
|
|
const PropertyValue<expression::Image>& getBackgroundPattern() const;
|
|
void setBackgroundPattern(const PropertyValue<expression::Image>&);
|
|
void setBackgroundPatternTransition(const TransitionOptions&);
|
|
TransitionOptions getBackgroundPatternTransition() const;
|
|
|
|
// Private implementation
|
|
|
|
class Impl;
|
|
const Impl& impl() const;
|
|
|
|
Mutable<Impl> mutableImpl() const;
|
|
BackgroundLayer(Immutable<Impl>);
|
|
std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
|
|
|
|
protected:
|
|
// Dynamic properties
|
|
std::optional<conversion::Error> setPropertyInternal(const std::string& name, const conversion::Convertible& value) final;
|
|
|
|
StyleProperty getProperty(const std::string& name) const final;
|
|
Value serialize() const final;
|
|
|
|
Mutable<Layer::Impl> mutableBaseImpl() const final;
|
|
};
|
|
|
|
} // namespace style
|
|
} // namespace mln
|
|
|
|
// clang-format on
|