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
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Index of this file:
59
59
// Version
60
60
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens)
Copy file name to clipboardexpand all lines: imgui_internal.h
+7-1
Original file line number
Diff line number
Diff line change
@@ -1275,9 +1275,11 @@ struct ImGuiContext
1275
1275
float WheelingWindowTimer;
1276
1276
1277
1277
// Item/widgets state and tracking information
1278
-
ImGuiID HoveredId; // Hovered widget
1278
+
ImGuiID HoveredId; // Hovered widget, filled during the frame
1279
1279
ImGuiID HoveredIdPreviousFrame;
1280
1280
bool HoveredIdAllowOverlap;
1281
+
bool HoveredIdUsingMouseWheel; // Hovered widget will use mouse wheel. Blocks scrolling the underlying window.
1282
+
bool HoveredIdPreviousFrameUsingMouseWheel;
1281
1283
bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0.
1282
1284
float HoveredIdTimer; // Measure contiguous hovering time
1283
1285
float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active
@@ -1290,6 +1292,7 @@ struct ImGuiContext
1290
1292
bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch.
1291
1293
bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state.
1292
1294
bool ActiveIdHasBeenEditedThisFrame;
1295
+
bool ActiveIdUsingMouseWheel; // Active widget will want to read mouse wheel. Blocks scrolling the underlying window.
1293
1296
ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it)
1294
1297
ImU32 ActiveIdUsingNavInputMask; // Active widget will want to read those nav inputs.
1295
1298
ImU64 ActiveIdUsingKeyInputMask; // Active widget will want to read those key inputs. When we grow the ImGuiKey enum we'll need to either to order the enum to make useful keys come first, either redesign this into e.g. a small array.
0 commit comments