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… |