示例#1
0
bool QNLWidget::x11Event(XEvent *event)
{
    if (m_driver && m_driver->isActive())
    {
        NL3D::IDriver *driver = dynamic_cast<NL3D::CDriverUser *>(m_driver)->getDriver();
        if (driver)
        {
            x11Proc proc = (x11Proc)driver->getWindowProc();
            return proc(driver, event);
        }
    }

    return false;
}
示例#2
0
	bool Nel3DWidget::x11Event( XEvent *event )
	{
		if( driver != NULL )
		{
			NL3D::IDriver *iDriver = dynamic_cast< NL3D::CDriverUser* >( driver )->getDriver();
			if( driver != NULL )
			{
				x11Proc proc = ( x11Proc )iDriver->getWindowProc();
				return proc( iDriver, event );
			}
		}

		return false;
	}
示例#3
0
bool QNLWidget::winEvent(MSG *message, long *result)
{
    if (m_driver && m_driver->isActive())
    {
        NL3D::IDriver *driver = dynamic_cast<NL3D::CDriverUser *>(m_driver)->getDriver();
        if (driver)
        {
            winProc proc = (winProc)driver->getWindowProc();
            return proc(driver, message->hwnd, message->message, message->wParam, message->lParam);
        }
    }

    return false;
}
示例#4
0
	bool Nel3DWidget::winEvent( MSG *message, long *result )
	{
		if( driver != NULL ) 
		{
			NL3D::IDriver *iDriver = dynamic_cast< NL3D::CDriverUser* >( driver )->getDriver();
			if( iDriver != NULL )
			{
				winProc proc = (winProc)iDriver->getWindowProc();
				return proc( iDriver, message->hwnd, message->message, message->wParam, message->lParam );
			}
		}

		return false;
	}
示例#5
0
bool QNLWidget::macEvent(EventHandlerCallRef caller, EventRef event)
{
    if(caller)
        nlerror("You are using QtCarbon! Only QtCocoa supported, please upgrade Qt");

    if (m_driver && m_driver->isActive())
    {
        NL3D::IDriver *driver = dynamic_cast<NL3D::CDriverUser *>(m_driver)->getDriver();
        if (driver)
        {
            cocoaProc proc = (cocoaProc)driver->getWindowProc();
            return proc(driver, event);
        }
    }

    return false;
}