src_c/bufferproxy.c¶
This extension module defines Python type pygame.BufferProxypygame object to export a surface buffer through an array protocol.
Header file: src_c/include/pygame_bufferproxy.h
- 
PyTypeObject *pgBufproxy_Type¶
- The pygame buffer proxy object type pygame.BufferProxy. 
- 
int pgBufproxy_Check(PyObject *x)¶
- Return true if Python object x is a - pygame.BufferProxyinstance, false otherwise. This will return false on- pygame.BufferProxysubclass instances as well.
- 
PyObject *pgBufproxy_New(PyObject *obj, getbufferproc get_buffer)¶
- Return a new - pygame.BufferProxyinstance. Argument obj is the Python object that has its data exposed. It may be- NULL. Argument get_buffer is the- pg_bufferget callback. It must not be- NULL. On failure raise a Python error and return- NULL.
- 
PyObject *pgBufproxy_GetParent(PyObject *obj)¶
- Return the Python object wrapped by buffer proxy obj. Argument obj must not be - NULL. On failure, raise a Python error and return- NULL.
Edit on GitHub
