MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / MetricsHelpMarker

Function MetricsHelpMarker

extern/imgui/imgui.cpp:18564–18575  ·  view source on GitHub ↗

Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.

Source from the content-addressed store, hash-verified

18562
18563// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.
18564static void MetricsHelpMarker(const char* desc)
18565{
18566 ImGui::TextDisabled("(?)");
18567 if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort))
18568 {
18569 ImGui::BeginTooltip();
18570 ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
18571 ImGui::TextUnformatted(desc);
18572 ImGui::PopTextWrapPos();
18573 ImGui::EndTooltip();
18574 }
18575}
18576
18577// [DEBUG] List fonts in a font atlas and display its texture
18578void ImGui::ShowFontAtlas(ImFontAtlas* atlas)

Callers 3

ShowMetricsWindowMethod · 0.85
DebugNodeFontMethod · 0.85
ShowStackToolWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected