Numworks Epsilon  1.4.1
Graphing Calculator Operating System
responder_image_cell.h
Go to the documentation of this file.
1 #ifndef PROBABILITY_RESPONDER_IMAGE_CELL_H
2 #define PROBABILITY_RESPONDER_IMAGE_CELL_H
3 
4 #include <escher.h>
5 #include "calculation/calculation.h"
7 #include "image_cell.h"
8 
9 namespace Probability {
10 
11 class ResponderImageCell : public HighlightCell, public Responder {
12 public:
13  ResponderImageCell(Responder * parentResponder, Law * law, Calculation * calculation, CalculationController * calculationController);
14  Responder * responder() override {
15  return this;
16  }
17  void drawRect(KDContext * ctx, KDRect rect) const override;
18  KDSize minimalSizeForOptimalDisplay() const override;
19  bool handleEvent(Ion::Events::Event event) override;
20  void setHighlighted(bool highlight) override;
21  void setImage(const Image * image, const Image * focusedImage);
22  constexpr static KDCoordinate k_outline = 1;
25 private:
26  int numberOfSubviews() const override;
27  View * subviewAtIndex(int index) override;
28  void layoutSubviews() override;
29  ImageCell m_imageCell;
30  CalculationTypeController m_calculationTypeController;
31 };
32 
33 }
34 
35 #endif
ResponderImageCell(Responder *parentResponder, Law *law, Calculation *calculation, CalculationController *calculationController)
static constexpr KDCoordinate k_oneCellHeight
void setHighlighted(bool highlight) override
static constexpr KDCoordinate k_height
Definition: image_cell.h:14
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
Definition: image.h:6
static constexpr KDCoordinate k_oneCellWidth
bool handleEvent(Ion::Events::Event event) override
Definition: size.h:6
KDSize minimalSizeForOptimalDisplay() const override
static constexpr KDCoordinate k_width
Definition: image_cell.h:13
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: rect.h:26
void setImage(const Image *image, const Image *focusedImage)
Definition: view.h:23
static constexpr KDCoordinate k_outline