#pragma once #include #include #include #include #include namespace mbgl { class SpriteAtlasElement; class PositionedIcon { public: explicit PositionedIcon() {} explicit PositionedIcon(const SpriteAtlasElement& _image, float _top, float _bottom, float _left, float _right) : image(_image), top(_top), bottom(_bottom), left(_left), right(_right) {} optional image; float top = 0; float bottom = 0; float left = 0; float right = 0; explicit operator bool() const { return image && (*image).pos.hasArea(); } }; PositionedIcon shapeIcon(const SpriteAtlasElement& image, const style::SymbolLayoutProperties::Evaluated&); } // namespace mbgl