本文整理汇总了C++中OSFactory::getOSLoop方法的典型用法代码示例。如果您正苦于以下问题:C++ OSFactory::getOSLoop方法的具体用法?C++ OSFactory::getOSLoop怎么用?C++ OSFactory::getOSLoop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSFactory
的用法示例。
在下文中一共展示了OSFactory::getOSLoop方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: execute
void CmdExitLoop::execute()
{
// Get the instance of OSFactory
OSFactory *pOsFactory = OSFactory::instance( getIntf() );
// Exit the main OS loop
pOsFactory->getOSLoop()->exit();
}
示例2: manage
void VlcProc::manage()
{
// Did the user request to quit vlc ?
if( !vlc_object_alive( getIntf() ) )
{
// Get the instance of OSFactory
OSFactory *pOsFactory = OSFactory::instance( getIntf() );
// Exit the main OS loop
pOsFactory->getOSLoop()->exit();
return;
}
}
示例3: OSWindow
MacOSXWindow::MacOSXWindow( intf_thread_t *pIntf, GenericWindow &rWindow,
bool dragDrop, bool playOnDrop,
MacOSXWindow *pParentWindow ):
OSWindow( pIntf ), m_pParent( pParentWindow ), m_dragDrop( dragDrop )
{
// Create the window
Rect rect;
SetRect( &rect, 0, 0, 0, 0 );
CreateNewWindow( kDocumentWindowClass, kWindowNoShadowAttribute |
kWindowNoTitleBarAttribute, &rect, &m_win );
// Create the event handler for this window
OSFactory *pOSFactory = OSFactory::instance( getIntf() );
((MacOSXLoop*)pOSFactory->getOSLoop())->registerWindow( rWindow, m_win );
}