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);
|
||||
|
||||
_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);
|
||||
|
||||
drawEntries();
|
||||
|
@ -98,8 +98,8 @@ void ListView::drawFooter()
|
|||
DrawTextRect2(&_pageIcon, footer.c_str());
|
||||
FillAreaRect(&_firstPageButton, BLACK);
|
||||
DrawTextRect2(&_firstPageButton, "First");
|
||||
FillAreaRect(&_lastPageButton, BLACK);
|
||||
DrawTextRect2(&_lastPageButton, "Last");
|
||||
FillAreaRect(&_prevPageButton, BLACK);
|
||||
DrawTextRect2(&_prevPageButton, "Prev");
|
||||
FillAreaRect(&_nextPageButton, BLACK);
|
||||
DrawTextRect2(&_nextPageButton, "Next");
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ int ListView::listClicked(int x, int y)
|
|||
{
|
||||
actualizePage(_shownPage + 1);
|
||||
}
|
||||
else if (IsInRect(x, y, &_lastPageButton))
|
||||
else if (IsInRect(x, y, &_prevPageButton))
|
||||
{
|
||||
actualizePage(_shownPage - 1);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ private:
|
|||
int _shownPage;
|
||||
irect _pageIcon;
|
||||
irect _nextPageButton;
|
||||
irect _lastPageButton;
|
||||
irect _prevPageButton;
|
||||
irect _firstPageButton;
|
||||
int _itemCount = 7;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue