~aleteoryx/muditaos

ref: c2cd94a6f2aa3f54ba0559928a5f21e4fc042584 muditaos/module-apps/application-desktop/windows/LockedInfoWindow.hpp -rw-r--r-- 796 bytes
c2cd94a6 — KacperLewandowski [EGD-4417] Fix operations in calculator 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "AppWindow.hpp"
#include "Text.hpp"
#include "gui/widgets/Image.hpp"

namespace gui
{
    class LockedInfoWindow : public AppWindow
    {
        gui::Image *lockImage = nullptr;
        gui::Text *infoText   = nullptr;

        void setVisibleState();
        void invalidate() noexcept;

      public:
        explicit LockedInfoWindow(app::Application *app);
        void onBeforeShow(ShowMode mode, SwitchData *data) override;
        bool onInput(const InputEvent &inputEvent) override;

        void rebuild() override;
        void buildInterface() override;
        void destroyInterface() override;
    };
} /* namespace gui */