|
| #define | BindJSCallback(fn) (JSCallback)std::bind(fn, this, std::placeholders::_1, std::placeholders::_2) |
| | Macro to help bind C++ member functions to a JSCallback.
|
| |
| #define | BindJSCallbackWithRetval(fn) (JSCallbackWithRetval)std::bind(fn, this, std::placeholders::_1, std::placeholders::_2) |
| | Macro to help bind C++ member functions to a JSCallbackWithRetval.
|
| |
|
| typedef std::function< void(const JSObject &, const JSArgs &)> | JSCallback |
| | JSCallback typedef used for binding C++ callbacks to JavaScript functions.
|
| |
| typedef std::function< JSValue(const JSObject &, const JSArgs &)> | JSCallbackWithRetval |
| | JSCallbackWithRetval typedef used for binding C++ callbacks to JavaScript functions with an optional return value.
|
| |
◆ BindJSCallback
| #define BindJSCallback |
( |
| fn | ) |
(JSCallback)std::bind(fn, this, std::placeholders::_1, std::placeholders::_2) |
Macro to help bind C++ member functions to a JSCallback.
Usage: JSCallback callback = BindJSCallback(&MyClass::MyMemberFunction);
- Note
- Expected to run from within an instance of 'MyClass', note the 'this' keyword in the macro.
◆ BindJSCallbackWithRetval
| #define BindJSCallbackWithRetval |
( |
| fn | ) |
(JSCallbackWithRetval)std::bind(fn, this, std::placeholders::_1, std::placeholders::_2) |
Macro to help bind C++ member functions to a JSCallbackWithRetval.
Usage: JSCallback callback = BindJSCallback(&MyClass::MyMemberFunction);
- Note
- Expected to run from within an instance of 'MyClass', note the 'this' keyword in the macro.
Go to the source code of this file.