Files
test2/source/blender/python/intern/bpy_operator_wrap.hh

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

34 lines
908 B
C++
Raw Normal View History

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
2011-02-27 20:10:08 +00:00
/** \file
* \ingroup pythonintern
2011-02-27 20:10:08 +00:00
*/
#pragma once
#include <Python.h>
2011-02-15 03:20:12 +00:00
struct wmOperatorType;
/**
* These are used for operator methods, used by `bpy_operator.cc`.
*
* Accessed via sub-classes of `bpy.types.Macro` using the `define` method.
*/
PyObject *PYOP_wrap_macro_define(PyObject *self, PyObject *args);
2011-02-15 03:20:12 +00:00
2022-11-02 10:14:37 +11:00
/* Exposed to RNA/WM API. */
/**
* Generic function used by all Python defined operators
* it's passed as an argument to #WM_operatortype_append_ptr in for operator registration.
*/
void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata);
/**
* Generic function used by all Python defined macro-operators
* it's passed as an argument to #WM_operatortype_append_ptr in for operator registration.
*/
void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata);