mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
27 lines
606 B
C++
27 lines
606 B
C++
#ifndef PROBABILITY_IMAGE_CELL_H
|
|
#define PROBABILITY_IMAGE_CELL_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Probability {
|
|
|
|
class ImageCell : public HighlightCell {
|
|
public:
|
|
ImageCell();
|
|
void setHighlighted(bool highlight) override;
|
|
void setImage(const Image * image, const Image * focusedImage);
|
|
constexpr static KDCoordinate k_width = 39;
|
|
constexpr static KDCoordinate k_height = 23;
|
|
private:
|
|
int numberOfSubviews() const override;
|
|
View * subviewAtIndex(int index) override;
|
|
void layoutSubviews() override;
|
|
ImageView m_iconView;
|
|
const Image * m_icon;
|
|
const Image * m_focusedIcon;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|