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

Method processRefreshingScreen

source/Gui/BrowserWindow.cpp:1186–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1184}
1185
1186void BrowserWindow::processRefreshingScreen(RealVector2D const& startPos)
1187{
1188 if (_refreshProcessor->pendingTasks()) {
1189 auto color = ImColor(ImGui::GetStyleColorVec4(ImGuiCol_WindowBg));
1190 color.Value.w = 0.5f;
1191 auto size = ImGui::GetItemRectSize();
1192 auto afterTablePos = ImGui::GetCursorScreenPos();
1193
1194 ImGui::SetCursorScreenPos({startPos.x, startPos.y});
1195 if (ImGui::BeginChild("##overlay", {size.x, size.y}, 0, ImGuiWindowFlags_NoScrollbar)) {
1196 ImDrawList* drawList = ImGui::GetWindowDrawList();
1197 drawList->AddRectFilled({startPos.x, startPos.y}, {startPos.x + size.x, startPos.y + size.y}, color);
1198 AlienImGui::Spinner(AlienImGui::SpinnerParameters().pos({startPos.x + size.x / 2, startPos.y + size.y / 2}));
1199 }
1200 ImGui::EndChild();
1201 ImGui::SetCursorScreenPos(afterTablePos);
1202 }
1203}
1204
1205void BrowserWindow::processActivated()
1206{

Callers

nothing calls this directly

Calls 2

SpinnerParametersClass · 0.85
pendingTasksMethod · 0.80

Tested by

no test coverage detected