| 1184 | } |
| 1185 | |
| 1186 | void 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 | |
| 1205 | void BrowserWindow::processActivated() |
| 1206 | { |
nothing calls this directly
no test coverage detected