RADLib
RADical C++ application framework
RADUi::Slint::SlintBackend Class Reference

RADUi backend implementation that uses Slint's event loop. More...

#include <RADSlintBackend.h>

+ Inheritance diagram for RADUi::Slint::SlintBackend:
+ Collaboration diagram for RADUi::Slint::SlintBackend:

Public Member Functions

 SlintBackend ()
 Captures the creating thread as the UI thread. More...
 
void run () override
 Runs Slint's main event loop. More...
 
void quit () override
 Requests Slint's event loop to quit. More...
 
void postToUi (std::function< void()> task) override
 Posts task to Slint's UI queue. More...
 
bool isUiThread () const override
 Returns true when called from the captured UI thread. More...
 
- Public Member Functions inherited from RADUi::Backend
virtual ~Backend ()=default
 Destroys the backend through the interface. More...
 

Detailed Description

RADUi backend implementation that uses Slint's event loop.

Constructor & Destructor Documentation

◆ SlintBackend()

RADUi::Slint::SlintBackend::SlintBackend ( )

Captures the creating thread as the UI thread.

Member Function Documentation

◆ isUiThread()

bool RADUi::Slint::SlintBackend::isUiThread ( ) const
overridevirtual

Returns true when called from the captured UI thread.

Implements RADUi::Backend.

◆ postToUi()

void RADUi::Slint::SlintBackend::postToUi ( std::function< void()>  task)
overridevirtual

Posts task to Slint's UI queue.

Implements RADUi::Backend.

◆ quit()

void RADUi::Slint::SlintBackend::quit ( )
overridevirtual

Requests Slint's event loop to quit.

Implements RADUi::Backend.

◆ run()

void RADUi::Slint::SlintBackend::run ( )
overridevirtual

Runs Slint's main event loop.

Implements RADUi::Backend.


The documentation for this class was generated from the following file: