3.7. Layer Objects#
-
PyTypeObject CpLayer_Type#
The type object for the
CpLayerObject
class.
-
type CpLayerObject#
TODO
-
int CpLayer_CheckExact(PyObject *op)#
Checks if the given object is an
CpLayerObject
.
-
int CpLayer_Check(PyObject *op)#
Checks if the given object is instance of an
CpLayerObject
-
CpLayerObject *CpLayer_New(CpStateObject *state, CpLayerObject *parent);#
- Return value: New reference.
Creates a new layer and returns it. Returns NULL if an error occurs.
-
int CpLayer_Invalidate(CpLayerObject *layer)#
Invalidates the layer. Returns
0
if successful and-1
if an error occurs. This function will decrease the reference count of the layer.
-
int CpLayer_SetSequence(CpLayerObject *layer, PyObject *sequence, Py_ssize_t length, int8_t greedy)#
Sets the sequence of the layer. Returns
0
if successful and-1
if an error occurs.
-
void CpLayer_AppendPath(CpLayerObject *layer, PyObject *path)#
Appends the path to the layer. (macro)