Files
MuditaOS/module-apps/application-test/windows/TestWindow.hpp
Adam Dobrowolski 1cb4da819d [MOS-307] Application and Service example and docs
Working example of application and service ready to copy from
with minimum documentation
Apply suggestions from code review
Co-authored-by:
* Paweł Olejniczak <58421550+pawel-mudita@users.noreply.github.com>
* Paweł Joński <79840715+paweljonskim@users.noreply.github.com>
* Bartosz Cichocki <sp2fet@gmail.com>
2022-03-28 08:17:39 +02:00

32 lines
814 B
C++

// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "Icon.hpp"
#include <AppWindow.hpp>
namespace gui
{
class TestPresenter;
class TestMainWindow : public AppWindow
{
private:
TestPresenter &presenter;
Icon *button = nullptr;
public:
TestMainWindow(app::ApplicationCommon *app, const std::string &name, TestPresenter &presenter);
void onBeforeShow(ShowMode mode, SwitchData *data) override;
bool onInput(const InputEvent &inputEvent) override;
void rebuild() override;
void buildInterface() override;
void destroyInterface() override{};
void changeButtonText(const UTF8 &text);
};
}; // namespace gui