一键导入
slint-cpp-binding-generator
Manages C++20 integrations with Slint UI, CMake target linkage, thread-safe data models, and event loop dispatching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manages C++20 integrations with Slint UI, CMake target linkage, thread-safe data models, and event loop dispatching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Guides creation of modular Slint UI components, design tokens, responsive layouts, and modern aesthetics.
Executes hot-reloading preview sessions and Slint LSP syntax verification for iterative UI development.
Enforces data-oriented design (SoA vs AoS), SIMD loop friendliness, Google Benchmark integration, cache-line alignment, and microbenchmarking best practices.
Directs high-performance Python bindings creation, zero-copy buffer transfers, GIL management, and C++/Python memory safety.
Enforces modern C++20 standards, RAII resource management, immutability by default, and memory locality.
Enforces hyper-dense communication protocols and strict token economy constraints. Eliminates conversational filler, meta-commentary, and redundant explanations.
基于 SOC 职业分类
| name | slint-cpp-binding-generator |
| description | Manages C++20 integrations with Slint UI, CMake target linkage, thread-safe data models, and event loop dispatching. |
This skill directs high-performance C++20 integrations with Slint UI components, focusing on memory safety, CMake targets, and non-blocking asynchronous updates.
.slint markup into native C++20 targets via slint_target_sources() in CMake build scripts.slint::VectorModel<T> and slint::SharedString.slint::invoke_from_event_loop(...).#include "app_window.h" // Generated header from Slint
#include <slint/slint.h>
#include <memory>
#include <thread>
void runApplication() {
auto app = AppWindow::create();
// Bind UI Callback to C++ Logic
app->on_start_analysis([app_weak = std::weak_ptr<AppWindow>(app)](double cutoff) {
std::thread([app_weak, cutoff]() {
// Perform computation on worker thread
double result_gr = 2.45; // ... calculation logic
// Safe async UI update on main thread
slint::invoke_from_event_loop([app_weak, result_gr]() {
if (auto app = app_weak.lock()) {
app->set_calculation_status(slint::SharedString("Complete"));
app->set_result_amplitude(result_gr);
}
});
}).detach();
});
app->run();
}
find_package(Slint REQUIRED)
add_executable(correlation_gui src/main.cpp)
slint_target_sources(correlation_gui ui/app_window.slint)
target_link_libraries(correlation_gui PRIVATE Slint::Slint CorrelationCore)
target_compile_features(correlation_gui PRIVATE cxx_std_20)