|
Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
|
#include <Event.hpp>
Static Public Member Functions | |
| template<typename T > | |
| static EventHandlerImpl< T > * | Bind (void(*nonMemberFunctionToCall)(T &)) |
| template<typename T , typename U > | |
| static EventHandlerImpl< T > * | Bind (void(U::*memberFunctionToCall)(T &), U *thisPtr) |
| static EventHandlerImpl< void > * | Bind (void(*nonMemberFunctionToCall)()) |
| template<typename U > | |
| static EventHandlerImpl< void > * | Bind (void(U::*memberFunctionToCall)(), U *thisPtr) |
a syntax-sugar class that is used to assign a function as a handler to an Event
// for non member or static functions
// called inside ThisClass constructor as recommended
|
inlinestatic |
to be used when setting the event handler function to an event
the event data type T should be the same as the one used to create the Event or the compiler will complain
that the the event can't accept the binded handler
It is important to note that Event will own the memory created by Bind when the created event handler is assigned to it by its += call,
and so Event would destroy that memory when it no longer need it. So make sure not to keep the returned pointer yourself.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
1.8.11