diff options
-rw-r--r-- | qt/ScintillaEditPy/typesystem_ScintillaEdit.xml.template | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qt/ScintillaEditPy/typesystem_ScintillaEdit.xml.template b/qt/ScintillaEditPy/typesystem_ScintillaEdit.xml.template index a26b04352..12522f5f7 100644 --- a/qt/ScintillaEditPy/typesystem_ScintillaEdit.xml.template +++ b/qt/ScintillaEditPy/typesystem_ScintillaEdit.xml.template @@ -37,6 +37,28 @@ %PYARG_0 = PyInt_FromSize_t(mask); </inject-code> </modify-function> + <modify-function signature="setMarginMaskN(int, int)"> + <inject-code> + int margin = PyInt_AsLong(%PYARG_1); + if (margin == -1 && PyErr_Occurred()) + return NULL; + unsigned long mask = PyInt_AsUnsignedLongMask(%PYARG_2); + if (margin == -1 && PyErr_Occurred()) + return NULL; + + %CPPSELF->setMarginMaskN(margin, static_cast<int>(mask)); + Py_RETURN_NONE; + </inject-code> + </modify-function> + <modify-function signature="marginMaskN(int) const"> + <inject-code> + int margin = PyInt_AsLong(%PYARG_1); + if (margin == -1 && PyErr_Occurred()) + return NULL; + unsigned int mask = (unsigned int)%CPPSELF->marginMaskN(margin); + %PYARG_0 = PyInt_FromSize_t(mask); + </inject-code> + </modify-function> </object-type> <object-type name="ScintillaDocument" /> |