mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
25 lines
703 B
C++
25 lines
703 B
C++
#ifndef APPS_SHIFT_ALPHA_LOCK_VIEW_H
|
|
#define APPS_SHIFT_ALPHA_LOCK_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "lock_view.h"
|
|
#include <apps/i18n.h>
|
|
|
|
class ShiftAlphaLockView : public View {
|
|
public:
|
|
ShiftAlphaLockView();
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
bool setStatus(Ion::Events::ShiftAlphaStatus status);
|
|
KDSize minimalSizeForOptimalDisplay() const override;
|
|
private:
|
|
constexpr static KDCoordinate k_lockRightMargin = 5;
|
|
int numberOfSubviews() const override;
|
|
void layoutSubviews(bool force = false) override;
|
|
View * subviewAtIndex(int index) override;
|
|
LockView m_lockView;
|
|
MessageTextView m_shiftAlphaView;
|
|
Ion::Events::ShiftAlphaStatus m_status;
|
|
};
|
|
|
|
#endif
|