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
Copy file name to clipboardExpand all lines: imgui.h
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
// Library Version
30
30
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
31
31
#defineIMGUI_VERSION"1.91.2 WIP"
32
-
#defineIMGUI_VERSION_NUM19112
32
+
#defineIMGUI_VERSION_NUM19113
33
33
#defineIMGUI_HAS_TABLE
34
34
#defineIMGUI_HAS_VIEWPORT// Viewport WIP branch
35
35
#defineIMGUI_HAS_DOCK// Docking WIP branch
@@ -1174,6 +1174,7 @@ enum ImGuiItemFlags_
1174
1174
ImGuiItemFlags_NoNavDefaultFocus = 1 << 2, // false // Disable item being a candidate for default focus (e.g. used by title bar items).
1175
1175
ImGuiItemFlags_ButtonRepeat = 1 << 3, // false // Any button-like behavior will have repeat mode enabled (based on io.KeyRepeatDelay and io.KeyRepeatRate values). Note that you can also call IsItemActive() after any button to tell if it is being held.
1176
1176
ImGuiItemFlags_AutoClosePopups = 1 << 4, // true // MenuItem()/Selectable() automatically close their parent popup window.
1177
+
ImGuiItemFlags_AllowDuplicateId = 1 << 5, // false // Allow submitting an item with the same identifier as an item already submitted this frame without triggering a warning tooltip if io.ConfigDebugHighlightIdConflicts is set.
1177
1178
};
1178
1179
1179
1180
// Flags for ImGui::InputText()
@@ -2309,6 +2310,7 @@ struct ImGuiIO
2309
2310
constchar* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified).
2310
2311
void* UserData; // = NULL // Store your own data.
2311
2312
2313
+
// Font system
2312
2314
ImFontAtlas*Fonts; // <auto> // Font atlas: load, rasterize and pack one or more fonts into a single texture.
2313
2315
float FontGlobalScale; // = 1.0f // Global scale all fonts
2314
2316
bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel.
@@ -2328,6 +2330,7 @@ struct ImGuiIO
2328
2330
bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = <main_viewport>, expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows.
2329
2331
2330
2332
// Miscellaneous options
2333
+
// (you can visualize and interact with all options in 'Demo->Configuration')
2331
2334
bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations.
2332
2335
bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // Swap Cmd<>Ctrl keys + OS X style text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl.
// e.g. io.ConfigDebugIsDebuggerPresent = ::IsDebuggerPresent() on Win32, or refer to ImOsIsDebuggerPresent() imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version).
ImGui::SameLine(); HelpMarker("Enable various tools calling IM_DEBUG_BREAK().\n\nRequires a debugger being attached, otherwise IM_DEBUG_BREAK() options will appear to crash your application.");
ImGui::SameLine(); HelpMarker("First calls to Begin()/BeginChild() will return false.\n\nTHIS OPTION IS DISABLED because it needs to be set at application boot-time to make sense. Showing the disabled option is a way to make this feature easier to discover.");
if (ImGui::MenuItem("Item Picker", NULL, false, has_debug_tools && is_debugger_present))
758
760
ImGui::DebugStartItemPicker();
759
761
if (!is_debugger_present)
760
762
ImGui::SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable the menu option to avoid casual users crashing the application.\n\nYou can however always access the Item Picker in Metrics->Tools.");
Copy file name to clipboardExpand all lines: imgui_internal.h
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2237,9 +2237,11 @@ struct ImGuiContext
2237
2237
ImVec2 WheelingAxisAvg;
2238
2238
2239
2239
// Item/widgets state and tracking information
2240
+
ImGuiID DebugDrawIdConflicts; // Set when we detect multiple items with the same identifier
2240
2241
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]
2241
2242
ImGuiID HoveredId; // Hovered widget, filled during the frame
2242
2243
ImGuiID HoveredIdPreviousFrame;
2244
+
int HoveredIdPreviousFrameItemCount; // Count numbers of items using the same ID as last frame's hovered id
2243
2245
float HoveredIdTimer; // Measure contiguous hovering time
2244
2246
float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active
0 commit comments