Files
Upsilon/apps/home/app_cell.h
Émilie Feral e65b07286d [escher] [apps] Get rid of magic numbers
Change-Id: Iad192d24324dda37b3d739830cc8ead7a032e22f
2017-02-20 10:54:03 +01:00

33 lines
719 B
C++

#ifndef HOME_APP_CELL_H
#define HOME_APP_CELL_H
#include <escher.h>
namespace Home {
class AppCell : public HighlightCell {
public:
AppCell();
int numberOfSubviews() const override;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
void setVisible(bool visible);
void reloadCell() override;
void setApp(::App * app);
private:
static constexpr KDCoordinate k_iconMargin = 18;
static constexpr KDCoordinate k_iconWidth = 55;
static constexpr KDCoordinate k_iconHeight = 56;
static constexpr KDCoordinate k_nameWidthMargin = 4;
static constexpr KDCoordinate k_nameHeightMargin = 2;
ImageView m_iconView;
PointerTextView m_nameView;
bool m_visible;
};
}
#endif