Luna::Event
Represents one event that once triggered, invokes all handlers registered to it.
template <typename _Func, typename _Alloc>
class Luna::Event
Member functions
-
Removes all handlers registered to this event.
-
void operator()(_Args &&... args)
Triggers this event and invokes all handlers.
-
usize add_handler(const Function< _Func > &func)
Adds one new handler to the event.
-
usize add_handler(Function< _Func > &&func)
Adds one new handler to the event.
-
void remove_handler(usize handle)
Removes one registered handler.