|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <core/eventHandler.h>
Public Member Functions | |
| void | callback (const EventArgs &args) const |
| EventHandle (EventHandler *handler, const std::string &name, HandleEventCallback callback, void *scope=nullptr, bool once=false) | |
| void | off () |
| bool | removed () const |
| void | setRemoved (bool value) |
Friends | |
| class | EventHandler |
Definition at line 25 of file eventHandler.h.
| visutwin::canvas::EventHandle::EventHandle | ( | EventHandler * | handler, |
| const std::string & | name, | ||
| HandleEventCallback | callback, | ||
| void * | scope = nullptr, | ||
| bool | once = false ) |
Definition at line 52 of file eventHandler.cpp.
References callback(), and EventHandler.
| void visutwin::canvas::EventHandle::callback | ( | const EventArgs & | args | ) | const |
Definition at line 38 of file eventHandler.cpp.
Referenced by EventHandle(), and visutwin::canvas::EventHandler::fire().
| void visutwin::canvas::EventHandle::off | ( | ) |
Definition at line 45 of file eventHandler.cpp.
|
inlinenodiscard |
Definition at line 39 of file eventHandler.h.
| void visutwin::canvas::EventHandle::setRemoved | ( | bool | value | ) |
Definition at line 31 of file eventHandler.cpp.
Referenced by visutwin::canvas::EventHandler::offByHandle().
|
friend |
Definition at line 42 of file eventHandler.h.
References EventHandler.
Referenced by EventHandle(), and EventHandler.