InfiniTime/src/displayapp/screens/BatteryIcon.h

26 lines
545 B
C
Raw Normal View History

#pragma once
2021-11-03 18:02:30 -04:00
#include <cstdint>
#include <lvgl/src/lv_core/lv_obj.h>
namespace Pinetime {
namespace Applications {
namespace Screens {
class BatteryIcon {
2021-04-24 05:00:45 -04:00
public:
void Create(lv_obj_t* parent);
void SetColor(lv_color_t);
void SetBatteryPercentage(uint8_t percentage);
lv_obj_t* GetObject();
static const char* GetUnknownIcon();
static const char* GetPlugIcon(bool isCharging);
2022-05-09 11:16:08 -04:00
private:
lv_obj_t* batteryImg;
lv_obj_t* batteryJuice;
};
}
}
}