You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8175a47
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/FAQ.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ Interactive widgets (such as calls to Button buttons) need a unique ID.
217
217
**Unique IDs are used internally to track active widgets and occasionally associate state to widgets.<BR>
218
218
Unique IDs are implicitly built from the hash of multiple elements that identify the "path" to the UI element.**
219
219
220
-
Since Dear ImGui 1.85, you can use `Demo>Tools>Stack Tool` or call `ImGui::ShowStackToolWindow()`. The tool display intermediate values leading to the creation of a unique ID, making things easier to debug and understand.
220
+
Since Dear ImGui 1.85, you can use `Demo>Tools>Stack Tool` or call `ImGui::ShowIdStackToolWindow()`. The tool display intermediate values leading to the creation of a unique ID, making things easier to debug and understand.
Copy file name to clipboardExpand all lines: imconfig.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@
34
34
// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp.
35
35
//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty.
36
36
//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty.
37
-
//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88).
37
+
//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowIdStackToolWindow() will be empty.
38
38
39
39
//---- Don't implement some functions to reduce linkage requirements.
40
40
//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a)
Copy file name to clipboardExpand all lines: imgui.cpp
+19-20Lines changed: 19 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ CODE
88
88
// [SECTION] PLATFORM DEPENDENT HELPERS
89
89
// [SECTION] METRICS/DEBUGGER WINDOW
90
90
// [SECTION] DEBUG LOG WINDOW
91
-
// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL)
91
+
// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, ID STACK TOOL)
92
92
93
93
*/
94
94
@@ -424,6 +424,7 @@ CODE
424
424
When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files.
425
425
You can read releases logs https://github.com/ocornut/imgui/releases for more details.
426
426
427
+
- 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)
427
428
- 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).
MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash.");
13791
13792
13792
-
// Stack Tool is your best friend!
13793
13793
Checkbox("Show Debug Log", &cfg->ShowDebugLog);
13794
13794
SameLine();
13795
13795
MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code.");
13796
13796
13797
-
// Stack Tool is your best friend!
13798
-
Checkbox("Show Stack Tool", &cfg->ShowStackTool);
13797
+
Checkbox("Show ID Stack Tool", &cfg->ShowIdStackTool);
13799
13798
SameLine();
13800
-
MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code.");
13799
+
MetricsHelpMarker("You can also call ImGui::ShowIdStackToolWindow() from your code.");
13801
13800
13802
13801
Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder);
13803
13802
Checkbox("Show windows rectangles", &cfg->ShowWindowsRects);
Copy file name to clipboardExpand all lines: imgui.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -307,7 +307,7 @@ namespace ImGui
307
307
IMGUI_APIvoidShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application!
308
308
IMGUI_APIvoidShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc.
309
309
IMGUI_APIvoidShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events.
310
-
IMGUI_APIvoidShowStackToolWindow(bool* p_open = NULL);// create Stack Tool window. hover items with mouse to query information about the source of their unique ID.
310
+
IMGUI_APIvoidShowIdStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID.
311
311
IMGUI_APIvoidShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information.
312
312
IMGUI_APIvoidShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style)
313
313
IMGUI_APIboolShowStyleSelector(constchar* label); // add style selector block (not a window), essentially a combo listing the default styles.
ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line]
1891
+
ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by ID Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line]
1892
1892
ImGuiID HoveredId; // Hovered widget, filled during the frame
1893
1893
ImGuiID HoveredIdPreviousFrame;
1894
1894
bool HoveredIdAllowOverlap;
@@ -2130,7 +2130,7 @@ struct ImGuiContext
2130
2130
ImU8 DebugItemPickerMouseButton;
2131
2131
ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID
2132
2132
ImGuiMetricsConfig DebugMetricsConfig;
2133
-
ImGuiStackTool DebugStackTool;
2133
+
ImGuiIdStackToolDebugIdStackTool;
2134
2134
2135
2135
// Misc
2136
2136
float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames..
0 commit comments