mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 23:50:31 -04:00
26 lines
633 B
C++
26 lines
633 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 "BatteryBase.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class Label;
|
|
}
|
|
namespace gui::status_bar
|
|
{
|
|
class BatteryText : public BatteryBase
|
|
{
|
|
public:
|
|
BatteryText(Item *parent, uint32_t x, uint32_t y, uint32_t w, uint32_t h);
|
|
|
|
private:
|
|
void showBatteryLevel(std::uint32_t percentage) override;
|
|
void showBatteryChargingDone() override;
|
|
void showBatteryCharging() override;
|
|
Label *label = nullptr;
|
|
};
|
|
} // namespace gui::status_bar
|