mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 17:03:05 +00:00
JANITORIAL: Protected few GridWidget members as appropriate
This commit is contained in:
parent
cdc62b6aca
commit
85fa7a26ff
@ -176,7 +176,6 @@ void GridItemWidget::handleMouseDown(int x, int y, int button, int clickCount) {
|
||||
_grid->draw();
|
||||
}
|
||||
_grid->openTray(oldX, oldY - offsetY + _h, _activeEntry->entryID);
|
||||
_grid->_tray->runModal();
|
||||
}
|
||||
}
|
||||
|
||||
@ -624,6 +623,7 @@ void GridWidget::reflowLayout() {
|
||||
|
||||
void GridWidget::openTray(int x, int y, int entryId) {
|
||||
_tray = new GridItemTray(this, x - _gridXSpacing / 3, y, _gridItemWidth + 2 * (_gridXSpacing / 3), _trayHeight, entryId, this);
|
||||
_tray->runModal();
|
||||
}
|
||||
|
||||
void GridWidget::scrollBarRecalc() {
|
||||
|
@ -107,30 +107,29 @@ protected:
|
||||
int _scrollWindowWidth;
|
||||
int _scrollSpeed;
|
||||
int _scrollPos;
|
||||
|
||||
public:
|
||||
int _innerHeight;
|
||||
int _innerWidth;
|
||||
int _thumbnailHeight;
|
||||
int _thumbnailWidth;
|
||||
int _gridItemHeight;
|
||||
int _gridItemWidth;
|
||||
int _minGridXSpacing;
|
||||
int _minGridYSpacing;
|
||||
int _gridXSpacing;
|
||||
int _gridYSpacing;
|
||||
int _trayHeight;
|
||||
|
||||
int _rows;
|
||||
int _itemsPerRow;
|
||||
int _firstVisibleItem;
|
||||
int _itemsOnScreen;
|
||||
GridItemTray *_tray;
|
||||
String _iconDir;
|
||||
|
||||
public:
|
||||
int _gridItemHeight;
|
||||
int _gridItemWidth;
|
||||
int _gridXSpacing;
|
||||
int _gridYSpacing;
|
||||
int _trayHeight;
|
||||
|
||||
bool _isTitlesVisible;
|
||||
|
||||
int _selectedEntry;
|
||||
GridItemTray *_tray;
|
||||
String _iconDir;
|
||||
|
||||
GridWidget(GuiObject *boss, int x, int y, int w, int h);
|
||||
GridWidget(GuiObject *boss, const String &name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user