Files
MuditaOS/module-apps/application-desktop/windows/LogoWindow.cpp
DariuszSabala 4201fcaea6 [BH-384] Turned application desktop to library
Defined separated cmake library, private and public include
directories and dependencies, isolated public headers from private,
cleaned up include paths and defined which targets depend on new
library, cleaned up include paths
2021-07-14 17:07:50 +02:00

36 lines
797 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "LogoWindow.hpp"
#include "Names.hpp"
#include <gui/widgets/Image.hpp>
#include <log.hpp>
namespace gui
{
LogoWindow::LogoWindow(app::Application *app) : AppWindow(app, app::window::name::logo_window)
{
buildInterface();
}
void LogoWindow::rebuild()
{
destroyInterface();
buildInterface();
}
void LogoWindow::buildInterface()
{
AppWindow::buildInterface();
bottomBar->setVisible(false);
statusBar->setVisible(false);
new gui::Image(this, 0, 0, 0, 0, "logo");
}
void LogoWindow::destroyInterface()
{
erase();
}
} /* namespace gui */