Files
MapLibreParticleLab/include/mbgl/style/layers/custom_layer.hpp
Bart Louwers 550f64be22 core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-14 23:25:20 +02:00

32 lines
868 B
C++

#pragma once
#include <mbgl/style/layer.hpp>
#include <mbgl/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