Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_StrokeAttribute.h
| Show All 20 Lines | |||||
| #pragma once | #pragma once | ||||
| extern "C" { | extern "C" { | ||||
| #include <Python.h> | #include <Python.h> | ||||
| } | } | ||||
| #include "../stroke/Stroke.h" | #include "../stroke/Stroke.h" | ||||
| using namespace Freestyle; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject StrokeAttribute_Type; | extern PyTypeObject StrokeAttribute_Type; | ||||
| #define BPy_StrokeAttribute_Check(v) \ | #define BPy_StrokeAttribute_Check(v) \ | ||||
| (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeAttribute_Type)) | (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeAttribute_Type)) | ||||
| /*---------------------------Python BPy_StrokeAttribute structure definition----------*/ | /*---------------------------Python BPy_StrokeAttribute structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD StrokeAttribute *sa; | PyObject_HEAD Freestyle::StrokeAttribute *sa; | ||||
| bool borrowed; /* true if *sa is a borrowed reference */ | bool borrowed; /* true if *sa is a borrowed reference */ | ||||
| } BPy_StrokeAttribute; | } BPy_StrokeAttribute; | ||||
| /*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/ | /*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/ | ||||
| int StrokeAttribute_Init(PyObject *module); | int StrokeAttribute_Init(PyObject *module); | ||||
| void StrokeAttribute_mathutils_register_callback(); | void StrokeAttribute_mathutils_register_callback(); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||