Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_Id.cpp
| Show All 40 Lines | int Id_Init(PyObject *module) | ||||
| Py_INCREF(&Id_Type); | Py_INCREF(&Id_Type); | ||||
| PyModule_AddObject(module, "Id", (PyObject *)&Id_Type); | PyModule_AddObject(module, "Id", (PyObject *)&Id_Type); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| //------------------------INSTANCE METHODS ---------------------------------- | //------------------------INSTANCE METHODS ---------------------------------- | ||||
| PyDoc_STRVAR(Id_doc, | PyDoc_STRVAR( | ||||
| Id_doc, | |||||
| "Class for representing an object Id.\n" | "Class for representing an object Id.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__(first=0, second=0)\n" | ".. method:: __init__(brother)\n" | ||||
| " __init__(first=0, second=0)\n" | |||||
| "\n" | "\n" | ||||
| " Build the Id from two numbers.\n" | " Build the Id from two numbers or another :class:`Id` using the copy constructor.\n" | ||||
| "\n" | "\n" | ||||
| " :arg brother: An Id object.\n" | |||||
| " :type brother: :class:`Id`" | |||||
| " :arg first: The first number.\n" | " :arg first: The first number.\n" | ||||
| " :type first: int\n" | " :type first: int\n" | ||||
| " :arg second: The second number.\n" | " :arg second: The second number.\n" | ||||
| " :type second: int\n" | " :type second: int\n"); | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | |||||
| " :arg brother: An Id object.\n" | |||||
| " :type brother: :class:`Id`"); | |||||
| static int Id_init(BPy_Id *self, PyObject *args, PyObject *kwds) | static int Id_init(BPy_Id *self, PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| static const char *kwlist_1[] = {"brother", NULL}; | static const char *kwlist_1[] = {"brother", NULL}; | ||||
| static const char *kwlist_2[] = {"first", "second", NULL}; | static const char *kwlist_2[] = {"first", "second", NULL}; | ||||
| PyObject *brother; | PyObject *brother; | ||||
| int first = 0, second = 0; | int first = 0, second = 0; | ||||
| ▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines | |||||