huxerui.map
importCross-platform declarative map view, types, and overlay validation for HuxerUI
import huxerui.map;
模块名读自上游 modules/map.cppm 里的 `export module` 声明。
mcpp add huxerui.map@0.1.0
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
import std;
import huxerui;
import huxerui.map;
namespace hm = huxerui::map;
namespace {
int checks = 0;
void Check(bool condition, std::string_view msg = "Map check failed") {
++checks;
if (!condition) {
throw std::runtime_error(std::string(msg) + " (#" + std::to_string(checks) + ")");
}
}
void Reject(const std::function<void(hm::MapOptions&)>& change, std::string_view label) {
hm::MapOptions options;
change(options);
bool rejected = false;
try {
// …
tests/examples/huxerui-map/tests/map.cpp · 项目 tests/examples/huxerui-map
构建 · 上游清单
- modules
huxerui.map- targets
map (lib)- language
c++23- manifest version
0.1.0- dependencies
huxerui- 来源
https://raw.githubusercontent.com/HuxerUI/Lib-Map/v0.1.0/mcpp.toml
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
0.1.0 最新 |
LinuxWindowsmacOS | 源站 | 1be555500de4… |