Blender  V3.3
Functions | Variables
BPy_Id.cpp File Reference
#include "BPy_Id.h"
#include "BPy_Convert.h"

Go to the source code of this file.

Functions

int Id_Init (PyObject *module)
 
 PyDoc_STRVAR (Id_doc, "Class for representing an object Id.\n" "\n" ".. method:: __init__(brother)\n" " __init__(first=0, second=0)\n" "\n" " Build the Id from two numbers or another :class:`Id` using the copy constructor.\n" "\n" " :arg brother: An Id object.\n" " :type brother: :class:`Id`" " :arg first: The first number.\n" " :type first: int\n" " :arg second: The second number.\n" " :type second: int\n")
 
static int Id_init (BPy_Id *self, PyObject *args, PyObject *kwds)
 
static void Id_dealloc (BPy_Id *self)
 
static PyObject * Id_repr (BPy_Id *self)
 
static PyObject * Id_RichCompare (BPy_Id *o1, BPy_Id *o2, int opid)
 
 PyDoc_STRVAR (Id_first_doc, "The first number constituting the Id.\n" "\n" ":type: int")
 
static PyObject * Id_first_get (BPy_Id *self, void *UNUSED(closure))
 
static int Id_first_set (BPy_Id *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (Id_second_doc, "The second number constituting the Id.\n" "\n" ":type: int")
 
static PyObject * Id_second_get (BPy_Id *self, void *UNUSED(closure))
 
static int Id_second_set (BPy_Id *self, PyObject *value, void *UNUSED(closure))
 

Variables

static PyGetSetDef BPy_Id_getseters []
 
PyTypeObject Id_Type
 

Function Documentation

◆ Id_dealloc()

static void Id_dealloc ( BPy_Id self)
static

Definition at line 74 of file BPy_Id.cpp.

◆ Id_first_get()

static PyObject* Id_first_get ( BPy_Id self,
void UNUSEDclosure 
)
static

Definition at line 112 of file BPy_Id.cpp.

References self.

◆ Id_first_set()

static int Id_first_set ( BPy_Id self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 117 of file BPy_Id.cpp.

◆ Id_init()

static int Id_init ( BPy_Id self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 53 of file BPy_Id.cpp.

References Id_Type.

◆ Id_Init()

int Id_Init ( PyObject *  module)

Definition at line 20 of file BPy_Id.cpp.

References Id_Type, and module.

Referenced by Freestyle_Init().

◆ Id_repr()

static PyObject* Id_repr ( BPy_Id self)
static

Definition at line 80 of file BPy_Id.cpp.

References self.

◆ Id_RichCompare()

static PyObject* Id_RichCompare ( BPy_Id o1,
BPy_Id o2,
int  opid 
)
static

Definition at line 86 of file BPy_Id.cpp.

References BPy_Id::id, and PyBool_from_bool().

◆ Id_second_get()

static PyObject* Id_second_get ( BPy_Id self,
void UNUSEDclosure 
)
static

Definition at line 133 of file BPy_Id.cpp.

References self.

◆ Id_second_set()

static int Id_second_set ( BPy_Id self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 138 of file BPy_Id.cpp.

◆ PyDoc_STRVAR() [1/3]

PyDoc_STRVAR ( Id_doc  ,
"Class for representing an object Id.\n" "\n" ".. method:: __init__(brother)\n" " __init__(first=0, second=0)\n" "\n" " Build the Id from two numbers or another :class:`Id` using the copy constructor.\n" "\n" " :arg brother: An Id object.\n" " :type brother: :class:`Id`" " :arg first: The first number.\n" " :type first: int\n" " :arg second: The second number.\n" " :type second: int\n"   
)

◆ PyDoc_STRVAR() [2/3]

PyDoc_STRVAR ( Id_first_doc  ,
"The first number constituting the Id.\n" "\n" ":type: int"   
)

◆ PyDoc_STRVAR() [3/3]

PyDoc_STRVAR ( Id_second_doc  ,
"The second number constituting the Id.\n" "\n" ":type: int"   
)

Variable Documentation

◆ BPy_Id_getseters

PyGetSetDef BPy_Id_getseters[]
static
Initial value:
= {
{"first", (getter)Id_first_get, (setter)Id_first_set, Id_first_doc, nullptr},
{"second", (getter)Id_second_get, (setter)Id_second_set, Id_second_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static int Id_second_set(BPy_Id *self, PyObject *value, void *UNUSED(closure))
Definition: BPy_Id.cpp:138
static PyObject * Id_second_get(BPy_Id *self, void *UNUSED(closure))
Definition: BPy_Id.cpp:133
static int Id_first_set(BPy_Id *self, PyObject *value, void *UNUSED(closure))
Definition: BPy_Id.cpp:117
static PyObject * Id_first_get(BPy_Id *self, void *UNUSED(closure))
Definition: BPy_Id.cpp:112

Definition at line 149 of file BPy_Id.cpp.

◆ Id_Type

PyTypeObject Id_Type

Definition at line 157 of file BPy_Id.cpp.

Referenced by BPy_Id_from_Id(), Chain_init(), FrsCurve_init(), Id_init(), Id_Init(), and SVertex_init().