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

Method processIntern

source/Gui/LogWindow.cpp:28–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void LogWindow::processIntern()
29{
30 auto& styleRepository = StyleRepository::get();
31 if (ImGui::BeginChild(
32 "##", ImVec2(0, ImGui::GetContentRegionAvail().y - styleRepository.scale(40.0f)), true, ImGuiWindowFlags_HorizontalScrollbar)) {
33 ImGui::PushFont(StyleRepository::get().getMonospaceMediumFont());
34 ImGui::PushStyleColor(ImGuiCol_Text, (ImVec4)Const::MonospaceColor);
35
36 for (auto const& logMessage : _logger->getMessages(_verbose ? Priority::Unimportant : Priority::Important) | boost::adaptors::reversed) {
37 ImGui::TextUnformatted(logMessage.c_str());
38 }
39 ImGui::PopStyleColor();
40 ImGui::PopFont();
41 }
42 ImGui::EndChild();
43
44 ImGui::Spacing();
45 ImGui::Spacing();
46 AlienImGui::ToggleButton(AlienImGui::ToggleButtonParameters().name("Verbose"), _verbose);
47}

Callers

nothing calls this directly

Calls 4

ImVec2Class · 0.85
scaleMethod · 0.80

Tested by

no test coverage detected