Blender V5.0
BPy_StrokeAttribute.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11extern "C" {
12#include <Python.h>
13}
14
15#include "../stroke/Stroke.h"
16
18
19extern PyTypeObject StrokeAttribute_Type;
20
21#define BPy_StrokeAttribute_Check(v) \
22 (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeAttribute_Type))
23
24/*---------------------------Python BPy_StrokeAttribute structure definition----------*/
25typedef struct {
26 PyObject_HEAD
28 bool borrowed; /* true if *sa is a borrowed reference */
30
31/*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/
32
33int StrokeAttribute_Init(PyObject *module);
35
PyTypeObject StrokeAttribute_Type
void StrokeAttribute_mathutils_register_callback()
int StrokeAttribute_Init(PyObject *module)
Classes to define a stroke.
static struct PyModuleDef module
Definition python.cpp:796
PyObject_HEAD Freestyle::StrokeAttribute * sa