Files
MapLibreParticleLab/include/mln/gfx/drawable_custom_layer_host_tweaker.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

36 lines
732 B
C++

#pragma once
#include <mln/gfx/drawable_tweaker.hpp>
#include <mln/style/layers/custom_layer.hpp>
#include <memory>
#include <string>
namespace mln {
class PaintParameters;
namespace gfx {
class Drawable;
/**
Tweaker that enables drawing a CustomLayer via their CustomLayerHost
*/
class DrawableCustomLayerHostTweaker : public gfx::DrawableTweaker {
public:
DrawableCustomLayerHostTweaker(std::shared_ptr<style::CustomLayerHost> host_)
: host(host_) {}
~DrawableCustomLayerHostTweaker() override = default;
void init(Drawable&) override {};
void execute(Drawable&, PaintParameters&) override;
protected:
std::shared_ptr<style::CustomLayerHost> host;
};
} // namespace gfx
} // namespace mln