From bc23a539a52f953b31aa895ef2f32a6dff51fc16 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sat, 4 May 2013 14:03:21 +0000 Subject: [PATCH] New: added getBodyHook() method. --- hurricane/src/isobar/PyComponent.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hurricane/src/isobar/PyComponent.cpp b/hurricane/src/isobar/PyComponent.cpp index cedb4ee7..091badbc 100644 --- a/hurricane/src/isobar/PyComponent.cpp +++ b/hurricane/src/isobar/PyComponent.cpp @@ -20,6 +20,7 @@ #include "hurricane/isobar/PyPoint.h" #include "hurricane/isobar/PyBox.h" #include "hurricane/isobar/PyBasicLayer.h" +#include "hurricane/isobar/PyHook.h" #include "hurricane/isobar/PyComponent.h" #include "hurricane/isobar/PyPlug.h" #include "hurricane/isobar/PyHorizontal.h" @@ -53,6 +54,7 @@ extern "C" { // Standart Accessors (Attributes). DirectGetLongAttribute(PyComponent_getX,getX,PyComponent,Component) DirectGetLongAttribute(PyComponent_getY,getY,PyComponent,Component) + accessorHook(getBodyHook,PyComponent,Component) // Standart Destroy (Attribute). DBoDestroyAttribute(PyComponent_destroy,PyComponent) @@ -196,7 +198,8 @@ extern "C" { PyMethodDef PyComponent_Methods[] = - { { "getX" , (PyCFunction)PyComponent_getX , METH_NOARGS , "Return the Component X value." } + { { "getBodyHook" , (PyCFunction)PyComponent_getBodyHook , METH_NOARGS , "Return the component body hook (is a master Hook)." } + , { "getX" , (PyCFunction)PyComponent_getX , METH_NOARGS , "Return the Component X value." } , { "getY" , (PyCFunction)PyComponent_getY , METH_NOARGS , "Return the Component Y value." } , { "getPosition" , (PyCFunction)PyComponent_getPosition , METH_NOARGS , "Return the Component position." } , { "getCenter" , (PyCFunction)PyComponent_getCenter , METH_NOARGS , "Return the Component center position." }