Class for creating Qt threads easier.
More...
#include <QtThreadClosure.h>
|
| void | run () override |
| | Overrides run function and calls the closure assigned one.
|
| void | call (Args... args) const |
| | Makes the call to the member function.
|
|
| typedef std::function< void(Args...)> | func_type |
| | Function type of the lambda or function.
|
Class for creating Qt threads easier.
◆ QtThreadClosure() [1/2]
| sf::QtThreadClosure::QtThreadClosure |
( |
QObject * | parent = nullptr | ) |
|
|
inlineexplicit |
◆ QtThreadClosure() [2/2]
| sf::QtThreadClosure::QtThreadClosure |
( |
const func_type & | f, |
|
|
QObject * | parent = nullptr ) |
|
inlineexplicit |
Constructor assigning the closure function.
◆ ~QtThreadClosure()
| sf::QtThreadClosure::~QtThreadClosure |
( |
| ) |
|
|
inlineoverride |
◆ run()
| void sf::QtThreadClosure::run |
( |
| ) |
|
|
inlineoverrideprotected |
Overrides run function and calls the closure assigned one.
The documentation for this class was generated from the following file: