RADLib
RADical C++ application framework
RADUi::Backend Class Referenceabstract

Abstract UI backend used to post tasks to a toolkit UI thread. More...

#include <RADUi.h>

+ Inheritance diagram for RADUi::Backend:

Public Member Functions

virtual ~Backend ()=default
 Destroys the backend through the interface. More...
 
virtual void run ()=0
 Runs the toolkit event loop. More...
 
virtual void quit ()=0
 Requests that the toolkit event loop exit. More...
 
virtual void postToUi (std::function< void()> task)=0
 Posts task for execution on the UI thread. More...
 
virtual bool isUiThread () const =0
 Returns true when called from the UI thread. More...
 

Detailed Description

Abstract UI backend used to post tasks to a toolkit UI thread.

Constructor & Destructor Documentation

◆ ~Backend()

virtual RADUi::Backend::~Backend ( )
virtualdefault

Destroys the backend through the interface.

Member Function Documentation

◆ isUiThread()

virtual bool RADUi::Backend::isUiThread ( ) const
pure virtual

Returns true when called from the UI thread.

Implemented in RADUi::Slint::SlintBackend.

◆ postToUi()

virtual void RADUi::Backend::postToUi ( std::function< void()>  task)
pure virtual

Posts task for execution on the UI thread.

Implemented in RADUi::Slint::SlintBackend.

◆ quit()

virtual void RADUi::Backend::quit ( )
pure virtual

Requests that the toolkit event loop exit.

Implemented in RADUi::Slint::SlintBackend.

◆ run()

virtual void RADUi::Backend::run ( )
pure virtual

Runs the toolkit event loop.

Implemented in RADUi::Slint::SlintBackend.


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