MCPcopy Create free account
hub / github.com/RenderKit/embree / LogFinish

Method LogFinish

tutorials/common/imgui/imgui.cpp:12226–12258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12224}
12225
12226void ImGui::LogFinish()
12227{
12228 ImGuiContext& g = *GImGui;
12229 if (!g.LogEnabled)
12230 return;
12231
12232 LogText(IM_NEWLINE);
12233 switch (g.LogType)
12234 {
12235 case ImGuiLogType_TTY:
12236#ifndef IMGUI_DISABLE_TTY_FUNCTIONS
12237 fflush(g.LogFile);
12238#endif
12239 break;
12240 case ImGuiLogType_File:
12241 ImFileClose(g.LogFile);
12242 break;
12243 case ImGuiLogType_Buffer:
12244 break;
12245 case ImGuiLogType_Clipboard:
12246 if (!g.LogBuffer.empty())
12247 SetClipboardText(g.LogBuffer.begin());
12248 break;
12249 case ImGuiLogType_None:
12250 IM_ASSERT(0);
12251 break;
12252 }
12253
12254 g.LogEnabled = false;
12255 g.LogType = ImGuiLogType_None;
12256 g.LogFile = NULL;
12257 g.LogBuffer.clear();
12258}
12259
12260// Helper to display logging buttons
12261// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!)

Callers

nothing calls this directly

Calls 4

ImFileCloseFunction · 0.70
emptyMethod · 0.45
beginMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected