mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
(to know if the redrawing is necessary) Change-Id: Iebb1d2ba1f188815b01bcbd6e632244f6169b3f9
26 lines
642 B
C++
26 lines
642 B
C++
#ifndef APPS_TITLE_BAR_VIEW_H
|
|
#define APPS_TITLE_BAR_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "battery_view.h"
|
|
#include "i18n.h"
|
|
|
|
class TitleBarView : public View {
|
|
public:
|
|
TitleBarView();
|
|
void setTitle(I18n::Message title);
|
|
bool setChargeState(Ion::Battery::Charge chargeState);
|
|
bool setIsCharging(bool isCharging);
|
|
void refreshPreferences();
|
|
private:
|
|
constexpr static KDCoordinate k_batteryLeftMargin = 5;
|
|
int numberOfSubviews() const override;
|
|
void layoutSubviews() override;
|
|
View * subviewAtIndex(int index) override;
|
|
MessageTextView m_titleView;
|
|
BatteryView m_batteryView;
|
|
BufferTextView m_preferenceView;
|
|
};
|
|
|
|
#endif
|