diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-21 04:08:30 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-21 04:08:30 +0400 |
commit | ee5461b06a2e257590a90ee022d5446859427e74 (patch) | |
tree | 7fd153dfcc388c1a0d3a7e605fae759cf1f24c53 /source/blender/python/api2_2x/Ipocurve.h | |
parent | 2a4fae99ceca7328398973fc797688d648ee68ea (diff) |
reincorporation in the cvs of modifications which had been lost.
Diffstat (limited to 'source/blender/python/api2_2x/Ipocurve.h')
-rw-r--r-- | source/blender/python/api2_2x/Ipocurve.h | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.h b/source/blender/python/api2_2x/Ipocurve.h index 332e25e6589..6864e5f43b9 100644 --- a/source/blender/python/api2_2x/Ipocurve.h +++ b/source/blender/python/api2_2x/Ipocurve.h @@ -49,24 +49,24 @@ /*****************************************************************************/ /* Python API function prototypes for the IpoCurve module. */ /*****************************************************************************/ -PyObject *M_IpoCurve_New (PyObject *self, PyObject *args); -PyObject *M_IpoCurve_Get (PyObject *self, PyObject *args); +static PyObject *M_IpoCurve_New (PyObject *self, PyObject *args); +static PyObject *M_IpoCurve_Get (PyObject *self, PyObject *args); /*****************************************************************************/ /* The following string definitions are used for documentation strings. */ /* In Python these will be written to the console when doing a */ /* Blender.IpoCurve.__doc__ */ /*****************************************************************************/ -static char M_IpoCurve_doc[] = ""; -static char M_IpoCurve_New_doc[] =""; -static char M_IpoCurve_Get_doc[] =""; +char M_IpoCurve_doc[] = ""; +char M_IpoCurve_New_doc[] =""; +char M_IpoCurve_Get_doc[] =""; /*****************************************************************************/ /* Python method structure definition for Blender.IpoCurve module: */ /*****************************************************************************/ -static struct PyMethodDef M_IpoCurve_methods[] = { +struct PyMethodDef M_IpoCurve_methods[] = { {"New",(PyCFunction)M_IpoCurve_New, METH_VARARGS|METH_KEYWORDS,M_IpoCurve_New_doc}, {"Get", M_IpoCurve_Get, METH_VARARGS, M_IpoCurve_Get_doc}, {"get", M_IpoCurve_Get, METH_VARARGS, M_IpoCurve_Get_doc}, @@ -84,9 +84,15 @@ typedef struct { /*****************************************************************************/ /* Python C_IpoCurve methods declarations: */ /*****************************************************************************/ -PyObject *IpoCurve_getName(C_IpoCurve *self); -PyObject *IpoCurve_Recalc(C_IpoCurve *self); -PyObject *IpoCurve_setName(C_IpoCurve *self, PyObject *args); +static PyObject *IpoCurve_getName(C_IpoCurve *self); +static PyObject *IpoCurve_Recalc(C_IpoCurve *self); +static PyObject *IpoCurve_setName(C_IpoCurve *self, PyObject *args); +static PyObject *IpoCurve_addBezier( C_IpoCurve*self, PyObject *args); +static PyObject *IpoCurve_setInterpolation( C_IpoCurve*self, PyObject *args); +static PyObject *IpoCurve_getInterpolation( C_IpoCurve*self); +static PyObject *IpoCurve_setExtrapolation( C_IpoCurve*self, PyObject *args); +static PyObject *IpoCurve_getExtrapolation( C_IpoCurve*self); + /*****************************************************************************/ /* Python C_IpoCurve methods table: */ @@ -96,8 +102,20 @@ static PyMethodDef C_IpoCurve_methods[] = { {"getName", (PyCFunction)IpoCurve_getName, METH_NOARGS, "() - Return IpoCurve Data name"}, {"Recalc", (PyCFunction)IpoCurve_Recalc, METH_NOARGS, + "() - Return IpoCurve Data name"}, + {"update", (PyCFunction)IpoCurve_Recalc, METH_NOARGS, "() - Return IpoCurve Data name"}, {"setName", (PyCFunction)IpoCurve_setName, METH_VARARGS, + "(str) - Change IpoCurve Data name"}, +{"addBezier", (PyCFunction)IpoCurve_addBezier, METH_VARARGS, + "(str) - Change IpoCurve Data name"}, +{"setInterpolation", (PyCFunction)IpoCurve_setInterpolation, METH_VARARGS, + "(str) - Change IpoCurve Data name"}, +{"getInterpolation", (PyCFunction)IpoCurve_getInterpolation, METH_NOARGS, + "(str) - Change IpoCurve Data name"}, +{"setExtrapolation", (PyCFunction)IpoCurve_setExtrapolation, METH_VARARGS, + "(str) - Change IpoCurve Data name"}, +{"getExtrapolation", (PyCFunction)IpoCurve_getExtrapolation, METH_NOARGS, "(str) - Change IpoCurve Data name"}, {0} }; @@ -105,16 +123,16 @@ static PyMethodDef C_IpoCurve_methods[] = { /*****************************************************************************/ /* Python IpoCurve_Type callback function prototypes: */ /*****************************************************************************/ -void IpoCurveDeAlloc (C_IpoCurve *self); -//int IpoCurvePrint (C_IpoCurve *self, FILE *fp, int flags); -int IpoCurveSetAttr (C_IpoCurve *self, char *name, PyObject *v); -PyObject *IpoCurveGetAttr (C_IpoCurve *self, char *name); -PyObject *IpoCurveRepr (C_IpoCurve *self); +static void IpoCurveDeAlloc (C_IpoCurve *self); +//static int IpoCurvePrint (C_IpoCurve *self, FILE *fp, int flags); +static int IpoCurveSetAttr (C_IpoCurve *self, char *name, PyObject *v); +static PyObject *IpoCurveGetAttr (C_IpoCurve *self, char *name); +static PyObject *IpoCurveRepr (C_IpoCurve *self); /*****************************************************************************/ /* Python IpoCurve_Type structure definition: */ /*****************************************************************************/ -static PyTypeObject IpoCurve_Type = +PyTypeObject IpoCurve_Type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ |