~aleteoryx/muditaos

ref: 8f0797218f2defa9266704a93cfff94322a38f51 muditaos/module-apps/widgets/TextWithIconsWidget.hpp -rw-r--r-- 595 bytes
8f079721 — Mateusz Grzegorzek [EGD-5312] Add Time selection window 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-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <BoxLayout.hpp>
#include <ImageBox.hpp>
namespace app
{
    class Application;
}

namespace gui
{

    class TextWithIconsWidget : public HBox
    {
        app::Application *app = nullptr;

      public:
        explicit TextWithIconsWidget(gui::Item *parent);

        void addIcon(ImageBox *icon);
        void addText(const std::string &text, const UTF8 &font);

        std::vector<ImageBox *> icons;
    };

} /* namespace gui */