mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Kandinsky: Simplistic drawing for the TabView
Change-Id: I3c3ade5da2d7f55a305811de071fb6bba5c2b37d
This commit is contained in:
@@ -9,6 +9,9 @@ class TabViewController;
|
||||
class TabView : public View {
|
||||
public:
|
||||
TabView();
|
||||
|
||||
// View
|
||||
void drawRect(KDRect rect) const override;
|
||||
int numberOfSubviews() const override;
|
||||
View * subview(int index) override;
|
||||
void layoutSubviews() override;
|
||||
|
||||
@@ -11,6 +11,11 @@ TabView::TabView() :
|
||||
{
|
||||
}
|
||||
|
||||
/* View */
|
||||
void TabView::drawRect(KDRect rect) const {
|
||||
KDFillRect(rect, KDColorRGB(0xb5, 0x1d, 0xab));
|
||||
}
|
||||
|
||||
void TabView::addTabNamed(const char * name) {
|
||||
assert(m_numberOfTabs < k_maxNumberOfTabs);
|
||||
uint8_t tabIndex = m_numberOfTabs;
|
||||
|
||||
Reference in New Issue
Block a user