MCPcopy Create free account
hub / github.com/MrKepzie/Natron / Sbk_ParamFunc_getIsPersistent

Function Sbk_ParamFunc_getIsPersistent

Engine/NatronEngine/param_wrapper.cpp:459–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459static PyObject* Sbk_ParamFunc_getIsPersistent(PyObject* self)
460{
461 ParamWrapper* cppSelf = 0;
462 SBK_UNUSED(cppSelf)
463 if (!Shiboken::Object::isValid(self))
464 return 0;
465 cppSelf = (ParamWrapper*)((::Param*)Shiboken::Conversions::cppPointer(SbkNatronEngineTypes[SBK_PARAM_IDX], (SbkObject*)self));
466 PyObject* pyResult = 0;
467
468 // Call function/method
469 {
470
471 if (!PyErr_Occurred()) {
472 // getIsPersistent()const
473 bool cppResult = const_cast<const ::ParamWrapper*>(cppSelf)->getIsPersistent();
474 pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
475 }
476 }
477
478 if (PyErr_Occurred() || !pyResult) {
479 Py_XDECREF(pyResult);
480 return 0;
481 }
482 return pyResult;
483}
484
485static PyObject* Sbk_ParamFunc_getIsVisible(PyObject* self)
486{

Callers

nothing calls this directly

Calls 2

isValidFunction · 0.85
getIsPersistentMethod · 0.45

Tested by

no test coverage detected