Numworks Epsilon  1.4.1
Graphing Calculator Operating System
image_cell.h
Go to the documentation of this file.
1 #ifndef PROBABILITY_IMAGE_CELL_H
2 #define PROBABILITY_IMAGE_CELL_H
3 
4 #include <escher.h>
5 
6 namespace Probability {
7 
8 class ImageCell : public HighlightCell {
9 public:
10  ImageCell();
11  void setHighlighted(bool highlight) override;
12  void setImage(const Image * image, const Image * focusedImage);
13  constexpr static KDCoordinate k_width = 39;
14  constexpr static KDCoordinate k_height = 23;
15 private:
16  int numberOfSubviews() const override;
17  View * subviewAtIndex(int index) override;
18  void layoutSubviews() override;
19  ImageView m_iconView;
20  const Image * m_icon;
21  const Image * m_focusedIcon;
22 };
23 
24 }
25 
26 #endif
static constexpr KDCoordinate k_height
Definition: image_cell.h:14
int16_t KDCoordinate
Definition: coordinate.h:6
Definition: image.h:6
void setHighlighted(bool highlight) override
Definition: image_cell.cpp:13
static constexpr KDCoordinate k_width
Definition: image_cell.h:13
void setImage(const Image *image, const Image *focusedImage)
Definition: image_cell.cpp:22
Definition: view.h:23