Files
MapLibreParticleLab/include/mln/style/layers/custom_layer.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

32 lines
866 B
C++

#pragma once
#include <mln/style/layer.hpp>
#include <mln/style/layers/custom_layer_host.hpp>
#include <memory>
namespace mln {
namespace style {
class CustomLayer final : public Layer {
public:
CustomLayer(const std::string& id, std::unique_ptr<CustomLayerHost> host);
CustomLayer(const CustomLayer&) = delete;
~CustomLayer() final;
class Impl;
const Impl& impl() const;
Mutable<Impl> mutableImpl() const;
private:
std::optional<conversion::Error> setPropertyInternal(const std::string& name,
const conversion::Convertible& value) final;
StyleProperty getProperty(const std::string&) const final;
std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
Mutable<Layer::Impl> mutableBaseImpl() const final;
};
} // namespace style
} // namespace mln