|
RADLib
RADical C++ application framework
|
Slint backend integration and generated-component binding helpers. More...
#include <RADUi/RADUi.h>#include <RADUi/RADTheme.h>#include <slint.h>#include <tuple>#include <type_traits>#include <utility>
Include dependency graph for RADSlintBackend.h:Go to the source code of this file.
Classes | |
| class | RADUi::Slint::SlintBackend |
| RADUi backend implementation that uses Slint's event loop. More... | |
| class | RADUi::Slint::Detail::EventComponentBridge< Component, Callback, Args > |
| Bridge object that forwards RADCore events to a Slint component callback. More... | |
| class | RADUi::Slint::Detail::ThemeComponentBridge< Component, Callback > |
| Bridge object that forwards ThemeManager changes to a Slint component callback. More... | |
Namespaces | |
| RADUi | |
| RADUi::Slint | |
| RADUi::Slint::Detail | |
Functions | |
| std::shared_ptr< SlintBackend > | RADUi::Slint::installBackend () |
| Installs and returns a shared Slint backend for RADUi. More... | |
| template<typename Component , typename F > | |
| void | RADUi::Slint::postToComponent (const slint::ComponentHandle< Component > &component, F &&action) |
| Posts action to the UI thread and invokes it only if component is still alive. More... | |
| template<typename Component , typename... Args, typename F > | |
| RADUi::Binding | RADUi::Slint::connectEventToComponent (RADCore::Event< void(Args...)> &event, const slint::ComponentHandle< Component > &component, F &&callback) |
| Connects a RADCore event to a Slint component callback and returns a binding handle. More... | |
| template<typename Component , typename... Args, typename F > | |
| RADUi::Binding | RADUi::Slint::bindEventToComponent (RADCore::Event< void(Args...)> &event, const slint::ComponentHandle< Component > &component, F &&callback) |
| Alias for connectEventToComponent used by property-oriented bridge code. More... | |
| template<typename Component , typename Value , typename Setter > | |
| RADUi::Binding | RADUi::Slint::bindProperty (RADCore::Event< void(Value)> &event, const slint::ComponentHandle< Component > &component, Setter setter) |
| Binds an event value directly to a generated Slint property setter. More... | |
| template<typename Component , typename Value , typename Setter , typename Transform > | |
| RADUi::Binding | RADUi::Slint::bindProperty (RADCore::Event< void(Value)> &event, const slint::ComponentHandle< Component > &component, Setter setter, Transform transform) |
| Binds an event value to a generated Slint property setter after transform. More... | |
| template<typename Component , typename F > | |
| RADUi::Binding | RADUi::Slint::bindTheme (RADUi::ThemeManager &manager, const slint::ComponentHandle< Component > &component, F &&callback) |
| Binds ThemeManager changes to a generated Slint component callback. More... | |
Slint backend integration and generated-component binding helpers.