2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2013-02-23 18:32:28 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup freestyle
|
2013-02-23 18:32:28 +00:00
|
|
|
*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#pragma once
|
2008-07-21 21:24:37 +00:00
|
|
|
|
2014-04-17 12:25:41 +09:00
|
|
|
extern "C" {
|
2010-04-07 23:28:29 +00:00
|
|
|
#include <Python.h>
|
2014-04-17 12:25:41 +09:00
|
|
|
}
|
2010-04-07 23:28:29 +00:00
|
|
|
|
2008-07-21 21:24:37 +00:00
|
|
|
#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))
|
2008-07-21 21:24:37 +00:00
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_StrokeAttribute structure definition----------*/
|
|
|
|
|
typedef struct {
|
2021-06-24 17:10:22 +10:00
|
|
|
PyObject_HEAD
|
|
|
|
|
Freestyle::StrokeAttribute *sa;
|
2014-06-24 22:44:53 +09:00
|
|
|
bool borrowed; /* true if *sa is a borrowed reference */
|
2008-07-21 21:24:37 +00:00
|
|
|
} BPy_StrokeAttribute;
|
|
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
int StrokeAttribute_Init(PyObject *module);
|
2013-01-27 20:17:49 +00:00
|
|
|
void StrokeAttribute_mathutils_register_callback();
|
2008-07-21 21:24:37 +00:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|