itom
Loading...
Searching...
No Matches
ito::PythonRgba Class Reference

Classes

struct  PyRgba
 

Static Public Member Functions

static void PyRgba_dealloc (PyRgba *self)
 
static PyObject * PyRgba_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
 
static int PyRgba_init (PyRgba *self, PyObject *args, PyObject *kwds)
 
static PyRgbacreateEmptyPyRgba ()
 
static bool checkPyRgba (int number, PyObject *rgba1=NULL, PyObject *rgba2=NULL, PyObject *rgba3=NULL)
 
static PyObject * PyRgba_name (PyRgba *self)
 
static PyObject * PyRgba_repr (PyRgba *self)
 
static PyObject * PyRgba_toGray (PyRgba *self)
 
static PyObject * PyRgba_toColor (PyRgba *self)
 
static PyObject * PyRgba_RichCompare (PyRgba *self, PyObject *other, int cmp_op)
 
static PyObject * PyRgba_getValue (PyRgba *self, void *closure)
 
static int PyRgba_setValue (PyRgba *self, PyObject *value, void *closure)
 
static PyObject * PyRgba_Reduce (PyRgba *self, PyObject *args)
 
static PyObject * PyRgba_SetState (PyRgba *self, PyObject *args)
 
static PyObject * PyRgba_nbAdd (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbSubtract (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbMultiply (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbPositive (PyObject *o1)
 
static PyObject * PyRgba_nbAbsolute (PyObject *o1)
 
static PyObject * PyRgba_nbInvert (PyObject *o1)
 
static PyObject * PyRgba_nbLshift (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbRshift (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbAnd (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbXor (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbOr (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceAdd (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceSubtract (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceMultiply (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceLshift (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceRshift (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceAnd (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceXor (PyObject *o1, PyObject *o2)
 
static PyObject * PyRgba_nbInplaceOr (PyObject *o1, PyObject *o2)
 

Static Public Attributes

static PyGetSetDef PyRgba_getseters []
 
static PyMemberDef PyRgba_members []
 
static PyMethodDef PyRgba_methods []
 
static PyTypeObject PyRgbaType
 
static PyModuleDef PyRgbaModule
 
static PyNumberMethods PyRgba_numberProtocol
 

Member Data Documentation

◆ PyRgba_getseters

PyGetSetDef ito::PythonRgba::PyRgba_getseters
static
Initial value:
= {
{NULL}
}

◆ PyRgba_members

PyMemberDef ito::PythonRgba::PyRgba_members
static
Initial value:
= {
{"r", T_UBYTE, offsetof(PyRgba, rgba) + offsetof(ito::RgbaBase32, r), 0, PyRgba_red_doc},
{"g", T_UBYTE, offsetof(PyRgba, rgba) + offsetof(ito::RgbaBase32, g), 0, PyRgba_green_doc},
{"b", T_UBYTE, offsetof(PyRgba, rgba) + offsetof(ito::RgbaBase32, b), 0, PyRgba_blue_doc},
{"alpha", T_UBYTE, offsetof(PyRgba, rgba) + offsetof(ito::RgbaBase32, a), 0, PyRgba_alpha_doc},
{NULL}
}
Definition typeDefs.h:143
Definition pythonRgba.h:49

◆ PyRgba_methods

PyMethodDef ito::PythonRgba::PyRgba_methods
static
Initial value:
= {
{"name", (PyCFunction)PythonRgba::PyRgba_name, METH_NOARGS, PyRgba_name_doc},
{"__reduce__", (PyCFunction)PythonRgba::PyRgba_Reduce, METH_VARARGS, "__reduce__ method for handle pickling commands"},
{"__setstate__", (PyCFunction)PythonRgba::PyRgba_SetState, METH_VARARGS, "__setstate__ method for handle unpickling commands"},
{ "toGray", (PyCFunction)PythonRgba::PyRgba_toGray, METH_NOARGS, PyRgba_toGray_doc},
{NULL}
}

◆ PyRgbaModule

PyModuleDef ito::PythonRgba::PyRgbaModule
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"rgba",
"RGBA color value",
-1,
NULL, NULL, NULL, NULL, NULL
}

The documentation for this class was generated from the following files: