Blender V5.0
BPy_Operators.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/Operators.h"
16
18
19extern PyTypeObject Operators_Type;
20
21#define BPy_Operators_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Operators_Type))
22
23/*---------------------------Python BPy_Operators structure definition----------*/
24typedef struct {
25 PyObject_HEAD
27
28/*---------------------------Python BPy_Operators visible prototypes-----------*/
29
30int Operators_Init(PyObject *module);
31
PyTypeObject Operators_Type
int Operators_Init(PyObject *module)
Class gathering stroke creation algorithms.
static struct PyModuleDef module
Definition python.cpp:796