mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
32 lines
712 B
C++
32 lines
712 B
C++
#ifndef APPS_ALPHA_LOCK_VIEW_H
|
|
#define APPS_ALPHA_LOCK_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "lock_view.h"
|
|
#include "i18n.h"
|
|
|
|
class AlphaLockView : public View {
|
|
public:
|
|
enum class Status {
|
|
Default,
|
|
Alpha,
|
|
AlphaLock,
|
|
CapitalAlpha,
|
|
CapitalAlphaLock
|
|
};
|
|
AlphaLockView();
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
bool setStatus(Status status);
|
|
KDSize minimalSizeForOptimalDisplay() const override;
|
|
private:
|
|
constexpr static KDCoordinate k_lockRightMargin = 5;
|
|
int numberOfSubviews() const override;
|
|
void layoutSubviews() override;
|
|
View * subviewAtIndex(int index) override;
|
|
LockView m_lockView;
|
|
MessageTextView m_alphaView;
|
|
Status m_status;
|
|
};
|
|
|
|
#endif
|