mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
20 lines
490 B
C++
20 lines
490 B
C++
#ifndef APPS_BANNER_VIEW_H
|
|
#define APPS_BANNER_VIEW_H
|
|
|
|
#include <escher.h>
|
|
|
|
class BannerView : public View {
|
|
public:
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void setLegendAtIndex(char * text, int index);
|
|
KDSize minimalSizeForOptimalDisplay() override;
|
|
private:
|
|
int numberOfSubviews() const override;
|
|
View * subviewAtIndex(int index) override;
|
|
void layoutSubviews() override;
|
|
int numberOfLines();
|
|
virtual TextView * textViewAtIndex(int i) = 0;
|
|
};
|
|
|
|
#endif
|