当前位置: 首页>>代码示例>>C++>>正文


C++ GHOST_IEvent类代码示例

本文整理汇总了C++中GHOST_IEvent的典型用法代码示例。如果您正苦于以下问题:C++ GHOST_IEvent类的具体用法?C++ GHOST_IEvent怎么用?C++ GHOST_IEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了GHOST_IEvent类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: while

void GHOST_EventManager::removeTypeEvents(GHOST_TEventType type, GHOST_IWindow *window)
{
	TEventStack::iterator iter;
	iter = m_events.begin();
	while (iter != m_events.end()) {
		GHOST_IEvent *event = *iter;
		if ((event->getType() == type) && (!window || (event->getWindow() == window))) {
			GHOST_PRINT("GHOST_EventManager::removeTypeEvents(): removing event\n");
			/*
			 * Found an event of this type for the window, remove it.
			 * The iterator will become invalid.
			 */
			delete event;
			m_events.erase(iter);
			iter = m_events.begin();
		}
		else {
			++iter;
		}
	}
}
开发者ID:Ichthyostega,项目名称:blender,代码行数:21,代码来源:GHOST_EventManager.cpp

示例2: while

void GHOST_EventManager::removeWindowEvents(GHOST_IWindow* window)
{
	TEventStack::iterator iter;
	iter = m_events.begin();
	while (iter != m_events.end())
	{
		GHOST_IEvent* event = *iter;
		if (event->getWindow() == window)
		{
            GHOST_PRINT("GHOST_EventManager::removeWindowEvents(): removing event\n");
			/*
			 * Found an event for this window, remove it.
			 * The iterator will become invalid.
			 */
			delete event;
			m_events.erase(iter);
			iter = m_events.begin();
		}
		else
		{
			iter++;
		}
	}
}
开发者ID:mik0001,项目名称:Blender,代码行数:24,代码来源:GHOST_EventManager.cpp

示例3: GHOST_GetEventData

GHOST_TEventDataPtr GHOST_GetEventData(GHOST_EventHandle eventhandle)
{
	GHOST_IEvent *event = (GHOST_IEvent *) eventhandle;
	
	return event->getData();
}
开发者ID:floored,项目名称:blender,代码行数:6,代码来源:GHOST_C-api.cpp

示例4: GHOST_GetEventWindow

GHOST_WindowHandle GHOST_GetEventWindow(GHOST_EventHandle eventhandle)
{
	GHOST_IEvent *event = (GHOST_IEvent *) eventhandle;

	return (GHOST_WindowHandle) event->getWindow();
}
开发者ID:floored,项目名称:blender,代码行数:6,代码来源:GHOST_C-api.cpp

示例5: GHOST_GetEventTime

GHOST_TUns64 GHOST_GetEventTime(GHOST_EventHandle eventhandle)
{
	GHOST_IEvent *event = (GHOST_IEvent *) eventhandle;

	return event->getTime();
}
开发者ID:floored,项目名称:blender,代码行数:6,代码来源:GHOST_C-api.cpp

示例6: GHOST_GetEventType

GHOST_TEventType GHOST_GetEventType(GHOST_EventHandle eventhandle)
{
	GHOST_IEvent *event = (GHOST_IEvent *) eventhandle;
	
	return event->getType();
}
开发者ID:floored,项目名称:blender,代码行数:6,代码来源:GHOST_C-api.cpp


注:本文中的GHOST_IEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。