![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
This struct helper is used to create callbacks. More...
#include <C_callback.hpp>
Public Types | |
| using | CalleePtr = TCalleePtr |
Static Public Member Functions | |
| static CalleePtr | newFunctor (typename fge::CallbackFunctor< Types... >::CallbackFunction func) |
| Helper function to create a new callback functor. | |
| template<typename TLambda> | |
| static CalleePtr | newLambda (TLambda const &lambda) |
| Helper function to create a new callback lambda. | |
| template<class TObject> | |
| static CalleePtr | newObjectFunctor (typename fge::CallbackObjectFunctor< TObject, Types... >::CallbackFunctionObject func, TObject *object) |
| Helper function to create a new callback object functor. | |
This struct helper is used to create callbacks.
| TCalleePtr | The callback pointer type, can be CalleeUniquePtr or CalleeSharedPtr |
| Types | The list of arguments types passed to the functor |
|
inlinestaticnodiscard |
Helper function to create a new callback functor.
| func | The callback function |
|
inlinestaticnodiscard |
Helper function to create a new callback lambda.
| TLambda | The lambda type |
| lambda | The callback lambda |
|
inlinestaticnodiscard |
Helper function to create a new callback object functor.
| TObject | The object type |
| func | The callback method of the object |
| object | The object pointer |