core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -4,7 +4,7 @@
#include <optional>
namespace mbgl {
namespace mln {
/**
* @brief Holds options to limit what parts of a map are visible. All fields are
@@ -55,4 +55,4 @@ struct BoundOptions {
std::optional<double> minPitch;
};
} // namespace mbgl
} // namespace mln

View File

@@ -9,7 +9,7 @@
#include <functional>
namespace mbgl {
namespace mln {
/** Various options for describing the viewpoint of a map. All fields are
optional.
@@ -115,7 +115,7 @@ struct AnimationOptions {
std::optional<double> minZoom;
/** The easing timing curve of the transition. */
std::optional<mbgl::util::UnitBezier> easing;
std::optional<mln::util::UnitBezier> easing;
/** A function that is called on each frame of the transition, just before a
screen update, except on the last frame. The first parameter indicates
@@ -177,4 +177,4 @@ struct FreeCameraOptions {
void setRollPitchBearing(double roll, double pitch, double bearing) noexcept;
};
} // namespace mbgl
} // namespace mln

View File

@@ -2,7 +2,7 @@
#include <cstdint>
namespace mbgl {
namespace mln {
enum MapChange : uint8_t {
MapChangeRegionWillChange = 0,
@@ -23,4 +23,4 @@ enum MapChange : uint8_t {
MapChangeSourceDidChange = 15
};
} // namespace mbgl
} // namespace mln

View File

@@ -22,7 +22,7 @@
#include <memory>
#include <optional>
namespace mbgl {
namespace mln {
class RendererFrontend;
class TransformState;
@@ -217,4 +217,4 @@ protected:
Map(std::unique_ptr<Impl>, const util::ActionJournalOptions& = {});
};
} // namespace mbgl
} // namespace mln

View File

@@ -12,7 +12,7 @@
#include <cstdint>
#include <string>
namespace mbgl {
namespace mln {
namespace gfx {
class ShaderRegistry;
@@ -98,4 +98,4 @@ public:
virtual void onSymbolError(const std::string&) {}
};
} // namespace mbgl
} // namespace mln

View File

@@ -6,7 +6,7 @@
#include <memory>
namespace mbgl {
namespace mln {
/**
* @brief Holds values for Map options.
@@ -33,7 +33,7 @@ public:
/**
* @brief Gets the previously set (or default) map mode.
* @return Returns a #mbgl::MapMode
* @return Returns a #mln::MapMode
*/
MapMode mapMode() const;
@@ -154,4 +154,4 @@ private:
std::unique_ptr<Impl> impl_;
};
} // namespace mbgl
} // namespace mln

View File

@@ -5,7 +5,7 @@
#include <memory>
namespace mbgl {
namespace mln {
class Transform;
@@ -27,4 +27,4 @@ private:
std::unique_ptr<Transform> transform;
};
} // namespace mbgl
} // namespace mln

View File

@@ -9,7 +9,7 @@
#include <cstdint>
namespace mbgl {
namespace mln {
using EnumType = uint32_t;
@@ -53,26 +53,26 @@ enum class MapDebugOptions : EnumType {
constexpr MapDebugOptions operator|(MapDebugOptions lhs, MapDebugOptions rhs) {
// NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
return MapDebugOptions(mbgl::underlying_type(lhs) | mbgl::underlying_type(rhs));
return MapDebugOptions(mln::underlying_type(lhs) | mln::underlying_type(rhs));
}
constexpr MapDebugOptions& operator|=(MapDebugOptions& lhs, MapDebugOptions rhs) {
// NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
return (lhs = MapDebugOptions(mbgl::underlying_type(lhs) | mbgl::underlying_type(rhs)));
return (lhs = MapDebugOptions(mln::underlying_type(lhs) | mln::underlying_type(rhs)));
}
constexpr bool operator&(MapDebugOptions lhs, MapDebugOptions rhs) {
return mbgl::underlying_type(lhs) & mbgl::underlying_type(rhs);
return mln::underlying_type(lhs) & mln::underlying_type(rhs);
}
constexpr MapDebugOptions& operator&=(MapDebugOptions& lhs, MapDebugOptions rhs) {
// NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
return (lhs = MapDebugOptions(mbgl::underlying_type(lhs) & mbgl::underlying_type(rhs)));
return (lhs = MapDebugOptions(mln::underlying_type(lhs) & mln::underlying_type(rhs)));
}
constexpr MapDebugOptions operator~(MapDebugOptions value) {
// NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
return MapDebugOptions(~mbgl::underlying_type(value));
return MapDebugOptions(~mln::underlying_type(value));
}
} // namespace mbgl
} // namespace mln

View File

@@ -3,7 +3,7 @@
#include <functional>
#include <optional>
namespace mbgl {
namespace mln {
/**
* @brief Holds values for Axonometric rendering. All fields are
@@ -39,4 +39,4 @@ struct ProjectionMode {
std::optional<double> ySkew;
};
} // namespace mbgl
} // namespace mln