|
@@ -433,7 +433,7 @@ CODE
|
|
|
If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos.
|
|
|
|
|
|
- 2023/09/27 (1.90.0) - io: removed io.MetricsActiveAllocations introduced in 1.63. Same as 'g.DebugMemAllocCount - g.DebugMemFreeCount' (still displayed in Metrics, unlikely to be accessed by end-user).
|
|
|
- - 2023/09/26 (1.90.0) - debug tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIdStackToolWindow() ("ID Stack Tool"), as earlier name was misleading. Kept inline redirection function. (#4631)
|
|
|
+ - 2023/09/26 (1.90.0) - debug tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIDStackToolWindow() ("ID Stack Tool"), as earlier name was misleading. Kept inline redirection function. (#4631)
|
|
|
- 2023/09/15 (1.90.0) - ListBox, Combo: changed signature of "name getter" callback in old one-liner ListBox()/Combo() apis. kept inline redirection function (will obsolete).
|
|
|
- old: bool Combo(const char* label, int* current_item, bool (*getter)(void* user_data, int idx, const char** out_text), ...)
|
|
|
- new: bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...);
|
|
@@ -19325,8 +19325,8 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig;
|
|
|
if (cfg->ShowDebugLog)
|
|
|
ShowDebugLogWindow(&cfg->ShowDebugLog);
|
|
|
- if (cfg->ShowIdStackTool)
|
|
|
- ShowIdStackToolWindow(&cfg->ShowIdStackTool);
|
|
|
+ if (cfg->ShowIDStackTool)
|
|
|
+ ShowIDStackToolWindow(&cfg->ShowIDStackTool);
|
|
|
|
|
|
if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1)
|
|
|
{
|
|
@@ -19416,9 +19416,9 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
SameLine();
|
|
|
MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code.");
|
|
|
|
|
|
- Checkbox("Show ID Stack Tool", &cfg->ShowIdStackTool);
|
|
|
+ Checkbox("Show ID Stack Tool", &cfg->ShowIDStackTool);
|
|
|
SameLine();
|
|
|
- MetricsHelpMarker("You can also call ImGui::ShowIdStackToolWindow() from your code.");
|
|
|
+ MetricsHelpMarker("You can also call ImGui::ShowIDStackToolWindow() from your code.");
|
|
|
|
|
|
Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder);
|
|
|
Checkbox("Show windows rectangles", &cfg->ShowWindowsRects);
|
|
@@ -20659,7 +20659,7 @@ void ImGui::UpdateDebugToolItemPicker()
|
|
|
void ImGui::UpdateDebugToolStackQueries()
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
- ImGuiIdStackTool* tool = &g.DebugIdStackTool;
|
|
|
+ ImGuiIDStackTool* tool = &g.DebugIDStackTool;
|
|
|
|
|
|
// Clear hook when id stack tool is not visible
|
|
|
g.DebugHookIdInfo = 0;
|
|
@@ -20700,7 +20700,7 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
ImGuiWindow* window = g.CurrentWindow;
|
|
|
- ImGuiIdStackTool* tool = &g.DebugIdStackTool;
|
|
|
+ ImGuiIDStackTool* tool = &g.DebugIDStackTool;
|
|
|
|
|
|
// Step 0: stack query
|
|
|
// This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget.
|
|
@@ -20743,7 +20743,7 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat
|
|
|
info->DataType = data_type;
|
|
|
}
|
|
|
|
|
|
-static int StackToolFormatLevelInfo(ImGuiIdStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size)
|
|
|
+static int StackToolFormatLevelInfo(ImGuiIDStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size)
|
|
|
{
|
|
|
ImGuiStackLevelInfo* info = &tool->Results[n];
|
|
|
ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL;
|
|
@@ -20761,7 +20761,7 @@ static int StackToolFormatLevelInfo(ImGuiIdStackTool* tool, int n, bool format_f
|
|
|
}
|
|
|
|
|
|
// ID Stack Tool: Display UI
|
|
|
-void ImGui::ShowIdStackToolWindow(bool* p_open)
|
|
|
+void ImGui::ShowIDStackToolWindow(bool* p_open)
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize))
|
|
@@ -20773,7 +20773,7 @@ void ImGui::ShowIdStackToolWindow(bool* p_open)
|
|
|
}
|
|
|
|
|
|
// Display hovered/active status
|
|
|
- ImGuiIdStackTool* tool = &g.DebugIdStackTool;
|
|
|
+ ImGuiIDStackTool* tool = &g.DebugIDStackTool;
|
|
|
const ImGuiID hovered_id = g.HoveredIdPreviousFrame;
|
|
|
const ImGuiID active_id = g.ActiveId;
|
|
|
#ifdef IMGUI_ENABLE_TEST_ENGINE
|
|
@@ -20855,7 +20855,7 @@ void ImGui::DebugNodeViewport(ImGuiViewportP*) {}
|
|
|
void ImGui::DebugLog(const char*, ...) {}
|
|
|
void ImGui::DebugLogV(const char*, va_list) {}
|
|
|
void ImGui::ShowDebugLogWindow(bool*) {}
|
|
|
-void ImGui::ShowIdStackToolWindow(bool*) {}
|
|
|
+void ImGui::ShowIDStackToolWindow(bool*) {}
|
|
|
void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {}
|
|
|
void ImGui::UpdateDebugToolItemPicker() {}
|
|
|
void ImGui::UpdateDebugToolStackQueries() {}
|