23 TConsumerVector::iterator iter =
m_consumers.begin();
39 TEventStack::iterator p;
41 if ((*p)->getType() == type) {
64 TConsumerVector::iterator iter;
67 (*iter)->processEvent(event);
95 TConsumerVector::const_iterator iter = std::find(
130 TEventStack::iterator iter;
134 if (event->getWindow() == window) {
135 GHOST_PRINT(
"GHOST_EventManager::removeWindowEvents(): removing event\n");
152 TEventStack::iterator iter;
156 if ((event->getType() == type) && (!window || (event->getWindow() == window))) {
157 GHOST_PRINT(
"GHOST_EventManager::removeTypeEvents(): removing event\n");
#define GHOST_ASSERT(x, info)
std::deque< const GHOST_IEvent * > m_handled_events
GHOST_TSuccess addConsumer(GHOST_IEventConsumer *consumer)
std::deque< const GHOST_IEvent * > m_events
GHOST_TSuccess removeConsumer(GHOST_IEventConsumer *consumer)
TConsumerVector m_consumers
GHOST_TSuccess pushEvent(const GHOST_IEvent *event)
void removeWindowEvents(const GHOST_IWindow *window)
void removeTypeEvents(GHOST_TEventType type, const GHOST_IWindow *window=nullptr)