10 m_focusedIcon(nullptr)
14 int Cell::numberOfSubviews()
const {
18 View * Cell::subviewAtIndex(
int index) {
19 assert(index >= 0 && index < 3);
26 return &m_chevronView;
29 void Cell::layoutSubviews() {
32 m_labelView.
setFrame(
KDRect(1+k_iconWidth+2*k_iconMargin, 1, width-2-k_iconWidth-2*k_iconMargin - k_chevronWidth, height-2));
33 m_iconView.
setFrame(
KDRect(1+k_iconMargin, (height - k_iconHeight)/2, k_iconWidth, k_iconHeight));
34 m_chevronView.
setFrame(
KDRect(width-1-k_chevronWidth-k_chevronMargin, 1, k_chevronWidth, height - 2));
54 m_focusedIcon = focusedImage;
void setFrame(KDRect frame)
void reloadCell() override
constexpr KDColor KDColorWhite
static constexpr KDColor Select
void setMessage(I18n::Message message)
void drawRect(KDContext *ctx, KDRect rect) const override
void setImage(const Image *image, const Image *focusedImage)
constexpr KDColor KDColorBlack
bool isHighlighted() const
void setLabel(I18n::Message message)
void setImage(const Image *image)
void fillRect(KDRect rect, KDColor color)
KDCoordinate width() const
virtual void reloadCell()
void setBackgroundColor(KDColor backgroundColor)
static constexpr KDColor GreyBright
KDCoordinate height() const