6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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() override;
void setVisible(bool visible);
void reloadCell() override;
void setAppDescriptor(::App::Descriptor * appDescriptor);
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;
MessageTextView m_nameView;
bool m_visible;
};
}
#endif
|