0x004C8AA6
| 370 | |
| 371 | // 0x004C8AA6 |
| 372 | static void hTrackRight(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 373 | { |
| 374 | int16_t trackWidth = window.widgets[widgetIndex].width() - 2; |
| 375 | if (window.scrollAreas[scrollAreaIndex].hasFlags(ScrollFlags::vscrollbarVisible)) |
| 376 | { |
| 377 | trackWidth -= kScrollbarSize; |
| 378 | } |
| 379 | int16_t widgetContentWidth = std::max(window.scrollAreas[scrollAreaIndex].contentWidth - trackWidth, 0); |
| 380 | window.scrollAreas[scrollAreaIndex].contentOffsetX = std::min<int16_t>(window.scrollAreas[scrollAreaIndex].contentOffsetX + trackWidth, widgetContentWidth); |
| 381 | ScrollView::updateThumbs(window, widgetIndex); |
| 382 | WindowManager::invalidateWidget(window.type, window.number, widgetIndex); |
| 383 | } |
| 384 | |
| 385 | void verticalNudgeUp(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 386 | { |
no test coverage detected