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

Function MetricsHelpMarker

tutorials/common/imgui/imgui.cpp:12964–12975  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

12962
12963// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.
12964static void MetricsHelpMarker(const char* desc)
12965{
12966 ImGui::TextDisabled("(?)");
12967 if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort))
12968 {
12969 ImGui::BeginTooltip();
12970 ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
12971 ImGui::TextUnformatted(desc);
12972 ImGui::PopTextWrapPos();
12973 ImGui::EndTooltip();
12974 }
12975}
12976
12977// [DEBUG] List fonts in a font atlas and display its texture
12978void 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