Blender V5.0
BPy_ViewShape.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 "../view_map/ViewMap.h"
16
17#include "BPy_SShape.h"
18
20
21extern PyTypeObject ViewShape_Type;
22
23#define BPy_ViewShape_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ViewShape_Type))
24
25/*---------------------------Python BPy_ViewShape structure definition----------*/
26typedef struct {
27 PyObject_HEAD
29 bool borrowed; /* true if *vs a borrowed object */
32
33/*---------------------------Python BPy_ViewShape visible prototypes-----------*/
34
35int ViewShape_Init(PyObject *module);
36
PyTypeObject ViewShape_Type
int ViewShape_Init(PyObject *module)
Classes to define a View Map (ViewVertex, ViewEdge, etc.).
static struct PyModuleDef module
Definition python.cpp:796
PyObject_HEAD Freestyle::ViewShape * vs
BPy_SShape * py_ss