compat.slint
#includeSlint C++ SDK (libslint_cpp, headers, slint-compiler; upstream CMake's default features), bound to xim:slint
#include <slint.h>
mcpp add compat.slint@1.19.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
// compat.slint — the SDK through <slint.h>, as upstream's CMake target gives it.
//
// WHAT THIS ASSERTS AND WHY
//
// The package is a binding: the library, headers and slint-compiler are
// xim:slint's, built from the release tag with upstream CMake's default
// features. So the checks ask the LINKED library, not the headers:
//
// the features the headers define upstream CMake's defaults and the
// library implements the interpreter (it compiles a source)
// the runtime SharedString, models, colours: calls into libslint_cpp
// a component a `.slint` source compiled at run time, instantiated on
// a headless platform (Slint's software renderer, no
// display), driven through a property and a callback
//
// That the program starts at all is the run-time closure: libslint_cpp and,
// on Linux, the fontconfig xim:slint declares.
#include <slint.h>
#include <slint-interpreter.h>
#include <slint-platform.h>
#include <array>
// …
tests/examples/slint/tests/slint.cpp · project tests/examples/slint
Build
- targets
slint (lib)- language
c++23- import std
- no
- include dirs
mcpp_generated/slint/include/slint
Sources (1)
mcpp_generated/slint_sdk.cpp
Generated files
mcpp_generated/slint_sdk.cpp