mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 13:58:00 -05:00
This PR provides unified and reusable implementation of active icons used in windows system-wide.
30 lines
595 B
C++
30 lines
595 B
C++
// 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 */
|