|
@@ -15665,10 +15665,14 @@ static void Platform_SetImeDataFn_DefaultImpl(ImGuiContext*, ImGuiViewport*, ImG
|
|
|
//-----------------------------------------------------------------------------
|
|
|
// [SECTION] METRICS/DEBUGGER WINDOW
|
|
|
//-----------------------------------------------------------------------------
|
|
|
+// - MetricsHelpMarker() [Internal]
|
|
|
// - DebugRenderViewportThumbnail() [Internal]
|
|
|
// - RenderViewportsThumbnails() [Internal]
|
|
|
+// - DebugRenderKeyboardPreview() [Internal]
|
|
|
// - DebugTextEncoding()
|
|
|
-// - MetricsHelpMarker() [Internal]
|
|
|
+// - DebugFlashStyleColorStop() [Internal]
|
|
|
+// - DebugFlashStyleColor()
|
|
|
+// - UpdateDebugToolFlashStyleColor() [Internal]
|
|
|
// - ShowFontAtlas() [Internal but called by Demo!]
|
|
|
// - DebugNodeTexture() [Internal]
|
|
|
// - ShowMetricsWindow()
|
|
@@ -15686,6 +15690,21 @@ static void Platform_SetImeDataFn_DefaultImpl(ImGuiContext*, ImGuiViewport*, ImG
|
|
|
// - DebugNodeWindowsListByBeginStackParent() [Internal]
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
+#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) || !defined(IMGUI_DISABLE_DEBUG_TOOLS)
|
|
|
+// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.
|
|
|
+static void MetricsHelpMarker(const char* desc)
|
|
|
+{
|
|
|
+ ImGui::TextDisabled("(?)");
|
|
|
+ if (ImGui::BeginItemTooltip())
|
|
|
+ {
|
|
|
+ ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
|
|
|
+ ImGui::TextUnformatted(desc);
|
|
|
+ ImGui::PopTextWrapPos();
|
|
|
+ ImGui::EndTooltip();
|
|
|
+ }
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#ifndef IMGUI_DISABLE_DEBUG_TOOLS
|
|
|
|
|
|
void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb)
|
|
@@ -15874,19 +15893,6 @@ static const char* FormatTextureIDForDebugDisplay(char* buf, int buf_size, const
|
|
|
return FormatTextureIDForDebugDisplay(buf, (int)(buf_end - buf), cmd->TexRef.GetTexID()); // Calling TexRef::GetTexID() to avoid assert of cmd->GetTexID()
|
|
|
}
|
|
|
|
|
|
-// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.
|
|
|
-static void MetricsHelpMarker(const char* desc)
|
|
|
-{
|
|
|
- ImGui::TextDisabled("(?)");
|
|
|
- if (ImGui::BeginItemTooltip())
|
|
|
- {
|
|
|
- ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
|
|
|
- ImGui::TextUnformatted(desc);
|
|
|
- ImGui::PopTextWrapPos();
|
|
|
- ImGui::EndTooltip();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
#ifdef IMGUI_ENABLE_FREETYPE
|
|
|
namespace ImGuiFreeType { IMGUI_API const ImFontLoader* GetFontLoader(); IMGUI_API bool DebugEditFontLoaderFlags(unsigned int* p_font_builder_flags); }
|
|
|
#endif
|