Files
MapLibreParticleLab/include/mbgl/style/expression/image_expression.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

34 lines
912 B
C++

#pragma once
#include <mbgl/style/expression/expression.hpp>
namespace mln {
namespace style {
namespace expression {
class ParsingContext;
class ImageExpression final : public Expression {
public:
explicit ImageExpression(std::unique_ptr<Expression> imageID);
EvaluationResult evaluate(const EvaluationContext&) const override;
static ParseResult parse(const mln::style::conversion::Convertible&, ParsingContext&);
void eachChild(const std::function<void(const Expression&)>&) const override;
bool operator==(const Expression& e) const noexcept override;
std::vector<std::optional<Value>> possibleOutputs() const override { return {std::nullopt}; }
mln::Value serialize() const override;
std::string getOperator() const override { return "image"; }
private:
std::shared_ptr<Expression> imageID;
};
} // namespace expression
} // namespace style
} // namespace mln