Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/mathutils/mathutils_Color.h
| Show All 38 Lines | |||||
| /* struct data contains a pointer to the actual data that the | /* struct data contains a pointer to the actual data that the | ||||
| * object uses. It can use either PyMem allocated data (which will | * object uses. It can use either PyMem allocated data (which will | ||||
| * be stored in py_data) or be a wrapper for data allocated through | * be stored in py_data) or be a wrapper for data allocated through | ||||
| * blender (stored in blend_data). This is an either/or struct not both*/ | * blender (stored in blend_data). This is an either/or struct not both*/ | ||||
| /* prototypes */ | /* prototypes */ | ||||
| PyObject *Color_CreatePyObject( | PyObject *Color_CreatePyObject( | ||||
| const float col[3], | const float col[4], | ||||
| PyTypeObject *base_type | PyTypeObject *base_type | ||||
| ) ATTR_WARN_UNUSED_RESULT; | ) ATTR_WARN_UNUSED_RESULT; | ||||
| PyObject *Color_CreatePyObject_wrap( | PyObject *Color_CreatePyObject_wrap( | ||||
| float col[3], | float col[4], | ||||
| PyTypeObject *base_type | PyTypeObject *base_type | ||||
| ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); | ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); | ||||
| PyObject *Color_CreatePyObject_cb( | PyObject *Color_CreatePyObject_cb( | ||||
| PyObject *cb_user, | PyObject *cb_user, | ||||
| unsigned char cb_type, unsigned char cb_subtype | unsigned char cb_type, unsigned char cb_subtype | ||||
| ) ATTR_WARN_UNUSED_RESULT; | ) ATTR_WARN_UNUSED_RESULT; | ||||
| #endif /* __MATHUTILS_COLOR_H__ */ | #endif /* __MATHUTILS_COLOR_H__ */ | ||||