renaming of "last" to "prev" button
parent
defc4cde7e
commit
ca1578397e
|
@ -64,7 +64,7 @@ ListView::ListView(const irect *contentRect, const vector<Item> &items) : _conte
|
||||||
_pageIcon = iRect(_contentRect->w - 100, _contentRect->h + _contentRect->y - _footerHeight, 100, _footerHeight, ALIGN_CENTER);
|
_pageIcon = iRect(_contentRect->w - 100, _contentRect->h + _contentRect->y - _footerHeight, 100, _footerHeight, ALIGN_CENTER);
|
||||||
|
|
||||||
_firstPageButton = iRect(_contentRect->x, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
_firstPageButton = iRect(_contentRect->x, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
||||||
_lastPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
_prevPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
||||||
_nextPageButton = iRect(_contentRect->x + 300, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
_nextPageButton = iRect(_contentRect->x + 300, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER);
|
||||||
|
|
||||||
drawEntries();
|
drawEntries();
|
||||||
|
@ -98,8 +98,8 @@ void ListView::drawFooter()
|
||||||
DrawTextRect2(&_pageIcon, footer.c_str());
|
DrawTextRect2(&_pageIcon, footer.c_str());
|
||||||
FillAreaRect(&_firstPageButton, BLACK);
|
FillAreaRect(&_firstPageButton, BLACK);
|
||||||
DrawTextRect2(&_firstPageButton, "First");
|
DrawTextRect2(&_firstPageButton, "First");
|
||||||
FillAreaRect(&_lastPageButton, BLACK);
|
FillAreaRect(&_prevPageButton, BLACK);
|
||||||
DrawTextRect2(&_lastPageButton, "Last");
|
DrawTextRect2(&_prevPageButton, "Prev");
|
||||||
FillAreaRect(&_nextPageButton, BLACK);
|
FillAreaRect(&_nextPageButton, BLACK);
|
||||||
DrawTextRect2(&_nextPageButton, "Next");
|
DrawTextRect2(&_nextPageButton, "Next");
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ int ListView::listClicked(int x, int y)
|
||||||
{
|
{
|
||||||
actualizePage(_shownPage + 1);
|
actualizePage(_shownPage + 1);
|
||||||
}
|
}
|
||||||
else if (IsInRect(x, y, &_lastPageButton))
|
else if (IsInRect(x, y, &_prevPageButton))
|
||||||
{
|
{
|
||||||
actualizePage(_shownPage - 1);
|
actualizePage(_shownPage - 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ private:
|
||||||
int _shownPage;
|
int _shownPage;
|
||||||
irect _pageIcon;
|
irect _pageIcon;
|
||||||
irect _nextPageButton;
|
irect _nextPageButton;
|
||||||
irect _lastPageButton;
|
irect _prevPageButton;
|
||||||
irect _firstPageButton;
|
irect _firstPageButton;
|
||||||
int _itemCount = 7;
|
int _itemCount = 7;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue