Blender  V3.3
Functions | Variables
bmesh_py_ops.c File Reference
#include <Python.h>
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "bmesh.h"
#include "bmesh_py_ops.h"
#include "bmesh_py_ops_call.h"

Go to the source code of this file.

Functions

static PyObject * bpy_bmesh_op_CreatePyObject (const char *opname)
 
static PyObject * bpy_bmesh_op_repr (BPy_BMeshOpFunc *self)
 
static char * bmp_slots_as_args (const BMOSlotType slot_types[BMO_OP_MAX_SLOTS], const bool is_out)
 
static PyObject * bpy_bmesh_op_doc_get (BPy_BMeshOpFunc *self, void *UNUSED(closure))
 
static PyObject * bpy_bmesh_ops_module_getattro (PyObject *UNUSED(self), PyObject *pyname)
 
static PyObject * bpy_bmesh_ops_module_dir (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (BPy_BM_ops_doc, "Access to BMesh operators")
 
PyObject * BPyInit_bmesh_ops (void)
 

Variables

static PyTypeObject bmesh_op_Type
 
static PyGetSetDef bpy_bmesh_op_getseters []
 
static struct PyMethodDef BPy_BM_ops_methods []
 
static struct PyModuleDef BPy_BM_ops_module_def
 

Detailed Description

This file defines the 'bmesh.ops' module. Operators from 'opdefines' are wrapped.

Definition in file bmesh_py_ops.c.

Function Documentation

◆ bmp_slots_as_args()

static char* bmp_slots_as_args ( const BMOSlotType  slot_types[BMO_OP_MAX_SLOTS],
const bool  is_out 
)
static

◆ bpy_bmesh_op_CreatePyObject()

static PyObject* bpy_bmesh_op_CreatePyObject ( const char *  opname)
static

Definition at line 27 of file bmesh_py_ops.c.

References bmesh_op_Type.

Referenced by bpy_bmesh_ops_module_getattro().

◆ bpy_bmesh_op_doc_get()

static PyObject* bpy_bmesh_op_doc_get ( BPy_BMeshOpFunc self,
void UNUSEDclosure 
)
static

◆ bpy_bmesh_op_repr()

static PyObject* bpy_bmesh_op_repr ( BPy_BMeshOpFunc self)
static

Definition at line 36 of file bmesh_py_ops.c.

References self.

◆ bpy_bmesh_ops_module_dir()

static PyObject* bpy_bmesh_ops_module_dir ( PyObject *  UNUSEDself)
static

Definition at line 242 of file bmesh_py_ops.c.

◆ bpy_bmesh_ops_module_getattro()

static PyObject* bpy_bmesh_ops_module_getattro ( PyObject *  UNUSEDself,
PyObject *  pyname 
)
static

Definition at line 230 of file bmesh_py_ops.c.

References BMO_opcode_from_opname(), bpy_bmesh_op_CreatePyObject(), and NULL.

◆ BPyInit_bmesh_ops()

PyObject* BPyInit_bmesh_ops ( void  )

Definition at line 276 of file bmesh_py_ops.c.

References bmesh_op_Type, BPy_BM_ops_module_def, and NULL.

Referenced by BPyInit_bmesh().

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( BPy_BM_ops_doc  ,
"Access to BMesh operators"   
)

Variable Documentation

◆ bmesh_op_Type

static PyTypeObject bmesh_op_Type
static

Definition at line 25 of file bmesh_py_ops.c.

Referenced by bpy_bmesh_op_CreatePyObject(), and BPyInit_bmesh_ops().

◆ BPy_BM_ops_methods

struct PyMethodDef BPy_BM_ops_methods[]
static
Initial value:
= {
{"__getattr__", (PyCFunction)bpy_bmesh_ops_module_getattro, METH_O, NULL},
{"__dir__", (PyCFunction)bpy_bmesh_ops_module_dir, METH_NOARGS, NULL},
{NULL, NULL, 0, NULL},
}
static PyObject * bpy_bmesh_ops_module_dir(PyObject *UNUSED(self))
Definition: bmesh_py_ops.c:242
static PyObject * bpy_bmesh_ops_module_getattro(PyObject *UNUSED(self), PyObject *pyname)
Definition: bmesh_py_ops.c:230

Definition at line 242 of file bmesh_py_ops.c.

◆ BPy_BM_ops_module_def

struct PyModuleDef BPy_BM_ops_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"bmesh.ops",
BPy_BM_ops_doc,
0,
NULL,
NULL,
NULL,
NULL,
}
static struct PyMethodDef BPy_BM_ops_methods[]
Definition: bmesh_py_ops.c:257

Definition at line 263 of file bmesh_py_ops.c.

Referenced by BPyInit_bmesh_ops().

◆ bpy_bmesh_op_getseters

PyGetSetDef bpy_bmesh_op_getseters[]
static
Initial value:
= {
{"__doc__", (getter)bpy_bmesh_op_doc_get, (setter)NULL, NULL, NULL},
}
static PyObject * bpy_bmesh_op_doc_get(BPy_BMeshOpFunc *self, void *UNUSED(closure))
Definition: bmesh_py_ops.c:116

Definition at line 140 of file bmesh_py_ops.c.