| 122 | } |
| 123 | |
| 124 | void GuiArrayCtrl::scrollCellVisible(Point2I cell) |
| 125 | { |
| 126 | //make sure we have a parent |
| 127 | //make sure we have a valid cell selected |
| 128 | GuiScrollCtrl *parent = dynamic_cast<GuiScrollCtrl*>(getParent()); |
| 129 | if(!parent || cell.x < 0 || cell.y < 0) |
| 130 | return; |
| 131 | |
| 132 | RectI cellBounds(cell.x * mCellSize.x, cell.y * mCellSize.y, mCellSize.x, mCellSize.y); |
| 133 | parent->scrollRectVisible(cellBounds); |
| 134 | } |
| 135 | |
| 136 | // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // |
| 137 |
no test coverage detected