|
RADLib
RADical C++ application framework
|
Bridge object that forwards ThemeManager changes to a Slint component callback. More...
#include <RADSlintBackend.h>
Inheritance diagram for RADUi::Slint::Detail::ThemeComponentBridge< Component, Callback >:
Collaboration diagram for RADUi::Slint::Detail::ThemeComponentBridge< Component, Callback >:Public Member Functions | |
| ThemeComponentBridge (RADUi::ThemeManager &manager, const slint::ComponentHandle< Component > &component, Callback callback) | |
| Connects manager and stores a weak component reference. More... | |
| void | handle () |
| Posts current theme tokens to the component. More... | |
Public Member Functions inherited from RADCore::RADObject | |
| RADObject () | |
| Creates a RADObject bound to the current thread. More... | |
| virtual | ~RADObject () |
| Disconnects tracked event links and releases lifetime token. More... | |
| void | registerLink (const ConnectionRecord &record) |
| Registers a connection for cleanup when this object is destroyed. More... | |
| std::thread::id | threadId () const |
| Returns the thread id this object is currently associated with. More... | |
| EventLoop * | associatedEventLoop () const |
| Returns the associated event loop, if any. More... | |
| ThreadAffinity | threadAffinity () const |
| Returns both thread id and associated loop atomically. More... | |
| std::weak_ptr< void > | lifetimeToken () const |
| Returns a weak token used to drop queued callbacks after destruction. More... | |
| void | moveToThread (std::thread::id tId, EventLoop *loop=nullptr) |
| Moves the object's affinity to tId and optional loop. More... | |
Bridge object that forwards ThemeManager changes to a Slint component callback.
|
inline |
Connects manager and stores a weak component reference.
|
inline |
Posts current theme tokens to the component.