mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
34 lines
831 B
C++
34 lines
831 B
C++
#ifndef HOME_APP_CELL_H
|
|
#define HOME_APP_CELL_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Home {
|
|
|
|
class AppCell : public HighlightCell {
|
|
public:
|
|
AppCell();
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
|
|
int numberOfSubviews() const override;
|
|
View * subviewAtIndex(int index) override;
|
|
void layoutSubviews(bool force = false) override;
|
|
|
|
void setVisible(bool visible);
|
|
void reloadCell() override;
|
|
void setAppDescriptor(::App::Descriptor * appDescriptor);
|
|
private:
|
|
static constexpr KDCoordinate k_iconMargin = 22;
|
|
static constexpr KDCoordinate k_iconWidth = 55;
|
|
static constexpr KDCoordinate k_iconHeight = 56;
|
|
static constexpr KDCoordinate k_nameWidthMargin = 4;
|
|
static constexpr KDCoordinate k_nameHeightMargin = 1;
|
|
ImageView m_iconView;
|
|
MessageTextView m_nameView;
|
|
bool m_visible;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|