Blame view

build3/apps/probability/image_cell.h 606 Bytes
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
  #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