Logo Search packages:      
Sourcecode: blender version File versions

GHOST_TUns32 GHOST_EventManager::getNumEvents ( GHOST_TEventType  type  )  [virtual]

Returns the number of events of a certain type currently on the stack.

type The type of events to be counted.
The number of events on the stack of this type.

Definition at line 66 of file GHOST_EventManager.cpp.

References m_events.

      GHOST_TUns32 numEvents = 0;
      TEventStack::iterator p;
      for (p = m_events.begin(); p != m_events.end(); p++) {
            if ((*p)->getType() == type) {
      return numEvents;

Generated by  Doxygen 1.6.0   Back to index