| 216 | } |
| 217 | |
| 218 | void SimulationView::processSimulationScrollbars() |
| 219 | { |
| 220 | if (_renderSimulation) { |
| 221 | ImGuiViewport* viewport = ImGui::GetMainViewport(); |
| 222 | auto mainMenubarHeight = scale(22); |
| 223 | auto scrollbarThickness = 17; //fixed |
| 224 | _scrollbarX->process({{viewport->Pos.x, viewport->Size.y - scrollbarThickness}, {viewport->Size.x - 1 - scrollbarThickness, 1}}); |
| 225 | _scrollbarY->process({{viewport->Size.x - scrollbarThickness, viewport->Pos.y + mainMenubarHeight}, {1, viewport->Size.y - 1 - scrollbarThickness}}); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | bool SimulationView::isRenderSimulation() const |
| 230 | { |
no test coverage detected