MCPcopy Create free account
hub / github.com/chrxh/alien / processSimulationScrollbars

Method processSimulationScrollbars

source/Gui/SimulationView.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void 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
229bool SimulationView::isRenderSimulation() const
230{

Callers 3

processFadeInUIMethod · 0.80
processOperatingModeMethod · 0.80
processExitingMethod · 0.80

Calls 2

scaleFunction · 0.85
processMethod · 0.45

Tested by

no test coverage detected