stuff-from-scratch/test/test_utils/TestUiApplication.cpp

20 lines
505 B
C++
Raw Normal View History

2023-01-05 16:40:27 +00:00
#include "TestUiApplication.h"
#include "MainApplication.h"
2023-01-12 11:54:08 +00:00
#include "DesktopManager.h"
2023-01-05 16:40:27 +00:00
TestUiApplication::TestUiApplication(std::unique_ptr<CommandLineArgs> args, std::unique_ptr<MainApplication> mainApp)
: GuiApplication(std::move(args), std::move(mainApp))
{
}
DesktopManager* TestUiApplication::getDesktopManager() const
{
return mDesktopManager.get();
2023-01-12 11:54:08 +00:00
}
Scene* TestUiApplication::getMainWindowScene() const
{
return mDesktopManager->getWindowManager()->getMainWindow()->getScene();
2023-01-05 16:40:27 +00:00
}