本文整理汇总了C++中AppWindow::GetUI方法的典型用法代码示例。如果您正苦于以下问题:C++ AppWindow::GetUI方法的具体用法?C++ AppWindow::GetUI怎么用?C++ AppWindow::GetUI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppWindow
的用法示例。
在下文中一共展示了AppWindow::GetUI方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HoverUI
/// UI which the mouse is currently hovering over, which may be any AppWindow.
UserInterface * HoverUI()
{
AppWindow * hoverWindow = WindowMan.HoverWindow();
if (!hoverWindow)
return NULL;
return hoverWindow->GetUI();
}
示例2: MainUI
UserInterface * MainUI()
{
AppWindow * mainWindow = MainWindow();
if (!mainWindow)
{
LogMain("MainUI(): No main AppWindow!", WARNING);
return NULL;
}
return mainWindow->GetUI();
}
示例3: ActiveUI
/// Fetches active/current UI, taking into consideration active AppWindow.
UserInterface * ActiveUI()
{
AppWindow * activeWindow = WindowMan.GetCurrentlyActiveWindow();
if (!activeWindow)
{
LogMain("ActiveUI(): No active AppWindow!", WARNING);
return NULL;
}
return activeWindow->GetUI();
}
示例4: RelevantUI
/// Fetches either the Global or Active UI, taking into consideration both active AppWindow and if there exist any valid content in the Global UI.
UserInterface * RelevantUI()
{
AppWindow * window = WindowMan.GetCurrentlyActiveWindow();
if (!window)
return NULL;
UserInterface * globalUI = window->GetGlobalUI();
if (globalUI && globalUI->HasActivatableElement())
return globalUI;
return window->GetUI();
}