huxerui.interaction
importInteractive primitives, controllers, feedback modifiers, and visual motion effects for HuxerUI
import huxerui.interaction;
模块名读自上游 modules/interaction.cppm 里的 `export module` 声明。
mcpp add huxerui.interaction@0.2.0
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
// Headless C++23 module consumer test for huxerui.interaction.
// Verifies package resolution, transitive huxerui.huxerui linking, pipe/mask
// operators exported via huxerui.interaction.operators, and out-of-line
// std::invalid_argument validation across the module boundary.
import std;
import huxerui.interaction;
using namespace huxerui;
using namespace huxerui::interaction;
namespace {
template <class Fn>
bool ThrowsInvalidArgument(Fn&& fn) {
try {
fn();
} catch (const std::invalid_argument&) {
return true;
}
return false;
}
// …
tests/examples/huxerui-interaction/tests/runtime.cpp · 项目 tests/examples/huxerui-interaction
构建 · 上游清单
- modules
huxerui.interaction- targets
huxerui_interaction (lib), interaction (lib)- language
c++23- manifest version
0.2.0- dependencies
huxerui- 来源
https://raw.githubusercontent.com/HuxerUI/Lib-Interaction/v0.2.0/mcpp.toml
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
0.2.0 最新 |
LinuxWindowsmacOS | 源站 | 9ffff3fa6e8b… |