Callback related methods.
More...
#include <USDIOCallback.h>
|
MaxUSDAPI | USDIOCallback (std::shared_ptr< ValueHolderMember > callbackFunction) |
| Constructor. More...
|
|
MaxUSDAPI Value * | GetCallback () const |
| Get the callback as a Value type. More...
|
|
MaxUSDAPI void | Execute (Value **args, int argCount) |
| Executes the callback. More...
|
|
|
std::shared_ptr< ValueHolderMember > | callbackFunction |
|
Callback related methods.
◆ USDIOCallback()
MaxUSDAPI MAXUSD_NS_DEF::USDIOCallback::USDIOCallback |
( |
std::shared_ptr< ValueHolderMember > |
callbackFunction | ) |
|
Constructor.
- Parameters
-
callbackFunction | The maxscript/python callback, wrapped in a value holder to prevent garbage collection. |
◆ Execute()
MaxUSDAPI void MAXUSD_NS_DEF::USDIOCallback::Execute |
( |
Value ** |
args, |
|
|
int |
argCount |
|
) |
| |
Executes the callback.
- Parameters
-
args | The arguments to pass to the callback function. |
argCount | Argument count. |
◆ GetCallback()
MaxUSDAPI Value * MAXUSD_NS_DEF::USDIOCallback::GetCallback |
( |
| ) |
const |
Get the callback as a Value type.
- Returns
- The callback.
The documentation for this class was generated from the following file: