Files
Upsilon/apps/calculation/additional_outputs/illustration_cell.h
Émilie Feral 3fa4e0838a [escher] Create a class Bordered instead of BorderedCell: this enable
non-cell view to use it as well
2020-02-12 15:13:21 +01:00

24 lines
625 B
C++

#ifndef CALCULATION_ADDITIONAL_OUTPUTS_ILLUSTRATION_CELL_H
#define CALCULATION_ADDITIONAL_OUTPUTS_ILLUSTRATION_CELL_H
#include <escher/bordered.h>
#include <escher/highlight_cell.h>
namespace Calculation {
class IllustrationCell : public Bordered, public HighlightCell {
public:
void setHighlighted(bool highlight) override { return; }
void drawRect(KDContext * ctx, KDRect rect) const override;
private:
int numberOfSubviews() const override { return 1; }
View * subviewAtIndex(int index) override { return view(); }
void layoutSubviews(bool force = false) override;
virtual View * view() = 0;
};
}
#endif