|
Blender V5.0
|
Inherits CommandHandler.
Public Member Functions | |
| BPyCommandHandler (const std::string &id, PyObject *py_exec_fn) | |
| ~BPyCommandHandler () override | |
| int | exec (bContext *C, int argc, const char **argv) override |
| Public Member Functions inherited from CommandHandler | |
| CommandHandler (const std::string &id) | |
| virtual | ~CommandHandler ()=default |
Public Attributes | |
| PyObject * | py_exec_fn = nullptr |
| Public Attributes inherited from CommandHandler | |
| const std::string | id |
| bool | is_duplicate = false |
Definition at line 160 of file bpy_cli_command.cc.
|
inline |
Definition at line 162 of file bpy_cli_command.cc.
References CommandHandler::CommandHandler(), CommandHandler::id, and py_exec_fn.
|
inlineoverride |
Definition at line 166 of file bpy_cli_command.cc.
References bpy_cli_command_free(), and py_exec_fn.
|
inlineoverridevirtual |
The main execution function. The return value is used as the commands exit-code.
Implements CommandHandler.
Definition at line 171 of file bpy_cli_command.cc.
References bpy_cli_command_exec(), C, and py_exec_fn.
| PyObject* BPyCommandHandler::py_exec_fn = nullptr |
Definition at line 176 of file bpy_cli_command.cc.
Referenced by bpy_cli_command_unregister(), BPyCommandHandler(), exec(), and ~BPyCommandHandler().