Skip to content
Telamon OSFramework API
Browse the docs

App template

A minimal Atlas app to copy: a Kirigami window on Atlas.Ui, one Rust QObject exposed through CXX-Qt, built with CMake and Corrosion on the framework's crates.

The app template (template/ in the telamon-framework repository) is a minimal Telamon app: a QML interface compiled ahead of time by qt_add_qml_module, one Rust QObject exposed through CXX-Qt, built with CMake and Corrosion, on telamon-framework's Rust crates and the installed Telamon.Ui. The framework starts the app (app ID, one instance per session, journal logging, crash hooks) and Telamon.Ui gives it the look and an About page. It builds on its own: the template is not part of the framework's Cargo workspace.

What is in it

File What it is
CMakeLists.txt Finds Qt 6.11, Corrosion and KF6, checks that Telamon.Ui is installed, builds the Rust crate and the executable, installs it.
Cargo.toml, build.rs The Rust crate (a static library) and the CXX-Qt build step.
main.cpp The only C++: one call to telamon_app_run.
src/lib.rs Names the app with telamon_framework_ui::app! and exports telamon_backend_new().
src/backend.rs The Backend QObject: properties, invokables, a worker thread, a notification.
qml/Main.qml, qml/MainPage.qml The window, and a page that shows many Telamon.Ui controls.
data/ The desktop file and telamon-apptemplate.notifyrc, the notification events.

Pages

Pages