本文整理汇总了C++中CGUIWindow::Initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIWindow::Initialize方法的具体用法?C++ CGUIWindow::Initialize怎么用?C++ CGUIWindow::Initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIWindow
的用法示例。
在下文中一共展示了CGUIWindow::Initialize方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PreloadDialog
void CGUIWindowFullScreen::PreloadDialog(unsigned int windowID)
{
CGUIWindow *pWindow = m_gWindowManager.GetWindow(windowID);
if (pWindow)
{
pWindow->Initialize();
pWindow->DynamicResourceAlloc(false);
pWindow->AllocResources(false);
}
}
示例2: LoadNotOnDemandWindows
void CGUIWindowManager::LoadNotOnDemandWindows()
{
CSingleLock lock(g_graphicsContext);
for (WindowMap::iterator it = m_mapWindows.begin(); it != m_mapWindows.end(); it++)
{
CGUIWindow *pWindow = (*it).second;
if (pWindow->GetLoadType() == CGUIWindow::LOAD_ON_GUI_INIT)
{
pWindow->FreeResources(true);
pWindow->Initialize();
}
}
}
示例3: LoadNotOnDemandWindows
void CGUIWindowManager::LoadNotOnDemandWindows()
{
CSingleLock lock(g_graphicsContext);
for (const auto& entry : m_mapWindows)
{
CGUIWindow *pWindow = entry.second;
if (pWindow->GetLoadType() == CGUIWindow::LOAD_ON_GUI_INIT)
{
pWindow->FreeResources(true);
pWindow->Initialize();
}
}
}
示例4: LoadNotOnDemandWindows
void CGUIWindowManager::LoadNotOnDemandWindows()
{
/*
参数:
1、
返回:
1、
说明:
1、
*/
CSingleLock lock(g_graphicsContext);
for (WindowMap::iterator it = m_mapWindows.begin(); it != m_mapWindows.end(); it++)
{
CGUIWindow *pWindow = (*it).second;
if (!pWindow ->GetLoadOnDemand())
{
pWindow->FreeResources(true);
pWindow->Initialize();
}
}
}
示例5: ProcessMessage
//.........这里部分代码省略.........
/* CMediaSource share;
share.strStatus = g_mediaManager.GetDiskLabel(share.strPath);
share.strPath = pMsg->strParam;
if(g_mediaManager.IsAudio(share.strPath))
share.strStatus = "Audio-CD";
else if(share.strStatus == "")
share.strStatus = g_localizeStrings.Get(446);
share.strName = share.strPath;
share.m_ignore = true;
share.m_iDriveType = CMediaSource::SOURCE_TYPE_DVD;
g_mediaManager.AddAutoSource(share, pMsg->dwParam1 != 0); */
if (pMsg->dwParam1 != 0)
{
MEDIA_DETECT::CAutorun::ExecuteAutorun();
}
}
break;
case TMSG_OPTICAL_UNMOUNT:
{
/* CMediaSource share;
share.strPath = pMsg->strParam;
share.strName = share.strPath;
g_mediaManager.RemoveAutoSource(share); */
g_mediaManager.RemoveCdInfo(g_mediaManager.TranslateDevicePath(pMsg->strParam, true));
}
break;
#endif
//Boxee
case TMSG_INIT_WINDOW:
{
CGUIWindow *pWindow = (CGUIWindow *)pMsg->lpVoid;
if (pWindow)
pMsg->dwParam1 = pWindow->Initialize();
}
break;
case TMSG_LOAD_LANG_INFO:
{
pMsg->dwParam1 = g_langInfo.Load(pMsg->strParam);
break;
}
break;
case TMSG_DELETE_BG_LOADER:
{
CBackgroundInfoLoader *pLoader = (CBackgroundInfoLoader *)pMsg->lpVoid;
if (pLoader)
delete pLoader;
}
break;
case TMSG_GENERAL_MESSAGE:
{
CGUIMessage *msg = (CGUIMessage *)pMsg->lpVoid;
if (msg)
{
CGUIWindow* pWindow = g_windowManager.GetWindow(pMsg->dwParam1);
if (pWindow)
pWindow->OnMessage(*msg);
if (!pMsg->hWaitEvent) // no one waits for this message to return.
delete msg;
}
}
break;
case TMSG_SET_CONTROL_LABEL:
{