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; }
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; }
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; }
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; }
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; }