OpenGL.GLU.glustruct
index
/var/pylive/OpenGL-ctypes/OpenGL/GLU/glustruct.py

Base class for GLU callback-caching structures

 
Modules
       
ctypes
weakref

 
Classes
       
Structure(_ctypes._CData)
GLUStruct

 
class GLUStruct(Structure)
    Base class for GLU Structures that want to retain references to callbacks
 
Also provides original-object-return for the "datapointer" style paremters
 
Each sub-class must override:
        CALLBACK_TYPES -- maps a "which" constant to a function type 
        CALLBACK_FUNCTION_REGISTRARS -- maps a "which" constant to the 
                registration function for functions of that type
        WRAPPER_METHODS -- maps a "which" consant to a method of the structure 
                that produces a callable around the function which takes care of 
                input/output arguments, data conversions, error handling and the 
                like.
Creates a dictionary member dataPointers if original-object-return is used
Creates a dictionary member callbacks if callback registration is used
 
 
Method resolution order:
GLUStruct
Structure
_ctypes._CData
object

Methods defined here:
addCallback(self, which, function)
Register a callback for this structure object
getAsParam(self)
Gets as a ctypes pointer to the underlying structure
noteObject(self, object)
Note object for later retrieval as a Python object pointer
 
This is the registration point for "original object return", returns 
a void pointer to the Python object, though this is, effectively, an 
opaque value.
originalObject(self, voidPointer)
Given a void-pointer, try to find our original Python object
ptrAsArray(self, ptr, length, type)
Copy length values from ptr into new array of given type

Data and other attributes defined here:
CALLBACK_FUNCTION_REGISTRARS = None
CALLBACK_TYPES = None
WRAPPER_METHODS = None
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GLUStruct' objects>
list of weak references to the object (if defined)

Methods inherited from Structure:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Structure:
__new__ = <built-in method __new__ of _ctypes.StructType object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__ctypes_from_outparam__(...)
__hash__(...)
x.__hash__() <==> hash(x)