OpenGLContext.events.event
index
/home/mcfletch/pylive/OpenGLContext/events/event.py

Base class for all OpenGLContext event objects.

 
Classes
       
object
Event

 
class Event(object)
    Base class for all local event objects.
 
This is an abstract class from which all local event objects are
derived.  It defines the base API for each event type, as understood
by the event dispatch system.
 
Attributes:
    type -- string value representing type of event REQUIRED!
        Examples: "mousebutton", "mousemove", "keyboard", "keypress"
    renderingPass -- pointer to the OpenGLContext.renderpass.RenderPass
        object associated with this event
    modifiers -- three-tuple of booleans: (shift, control, alt)
    context -- pointer to the rendering context
 
  Methods defined here:
__init__(self)
Initialize common event parameters
getKey(self)
Calculate the key for routing within the event manager.
 
Each subclass will define the appropriate data values for
inclusion in the key (note that the key must be a hashable
value).
getModifiers(self)
Retrieve a tuple of the active modifier keys
 
Format is three Boolean values, (shift, control, alt)
visited(self, key, value=None)
Check for or register visitation of the given key
 
key -- an opaque hashable value, normally the node and
    field/event as a tuple.
value -- if provided, sets the current value, otherwise
    signals that the current value should be returned
 
return value: previous key value (possibly None)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
context = None
modifiers = (0, 0, 0)
renderingPass = None
type = ''

 
Data
        __file__ = '/home/mcfletch/pylive/OpenGLContext/events/event.pyc'
__name__ = 'OpenGLContext.events.event'