Files
test/source/blender/freestyle/intern/python/BPy_StrokeAttribute.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1003 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0-or-later */
2013-02-23 18:32:28 +00:00
/** \file
* \ingroup freestyle
2013-02-23 18:32:28 +00:00
*/
2013-02-23 18:50:33 +00:00
#pragma once
extern "C" {
#include <Python.h>
}
#include "../stroke/Stroke.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
extern PyTypeObject StrokeAttribute_Type;
2013-02-23 18:50:33 +00:00
#define BPy_StrokeAttribute_Check(v) \
(PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeAttribute_Type))
/*---------------------------Python BPy_StrokeAttribute structure definition----------*/
typedef struct {
PyObject_HEAD
Freestyle::StrokeAttribute *sa;
bool borrowed; /* true if *sa is a borrowed reference */
} BPy_StrokeAttribute;
/*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/
2013-02-23 18:50:33 +00:00
int StrokeAttribute_Init(PyObject *module);
void StrokeAttribute_mathutils_register_callback();
///////////////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif