diff --git a/hurricane/src/isobar/PyContact.cpp b/hurricane/src/isobar/PyContact.cpp index 915ff92d..83ed4693 100644 --- a/hurricane/src/isobar/PyContact.cpp +++ b/hurricane/src/isobar/PyContact.cpp @@ -58,7 +58,12 @@ extern "C" { DirectGetLongAttribute(PyContact_getDx, getDx, PyContact,Contact) DirectGetLongAttribute(PyContact_getDy, getDy, PyContact,Contact) - + + DirectSetLongAttribute(PyContact_setX ,setX ,"Contact.setX" ,PyContact,Contact) + DirectSetLongAttribute(PyContact_setY ,setY ,"Contact.setY" ,PyContact,Contact) + DirectSetLongAttribute(PyContact_setDx,setDx,"Contact.setDx",PyContact,Contact) + DirectSetLongAttribute(PyContact_setDy,setDy,"Contact.setDy",PyContact,Contact) + // Standart destroy (Attribute). DBoDestroyAttribute(PyContact_destroy, PyContact) @@ -98,6 +103,10 @@ extern "C" { , { "getDx" , (PyCFunction)PyContact_getDx , METH_NOARGS , "Return the contact dx value." } , { "getDy" , (PyCFunction)PyContact_getDy , METH_NOARGS , "Return the contact dy value." } , { "translate" , (PyCFunction)PyContact_translate , METH_VARARGS, "Translates the Contact of dx and dy." } + , { "setX" , (PyCFunction)PyContact_setX , METH_VARARGS, "Sets the contact X value." } + , { "setY" , (PyCFunction)PyContact_setY , METH_VARARGS, "Sets the contact Y value." } + , { "setDx" , (PyCFunction)PyContact_setDx , METH_VARARGS, "Sets the contact dx value." } + , { "setDy" , (PyCFunction)PyContact_setDy , METH_VARARGS, "Sets the contact dy value." } , {NULL, NULL, 0, NULL} /* sentinel */ };