|
@@ -920,7 +920,7 @@ struct ImGuiNextWindowData
|
|
|
ImVec2 MenuBarOffsetMinVal; // *Always on* This is not exposed publicly, so we don't clear it.
|
|
|
|
|
|
ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); }
|
|
|
- inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; }
|
|
|
+ inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } // Also cleared by ItemAdd()
|
|
|
};
|
|
|
|
|
|
enum ImGuiNextItemDataFlags_
|
|
@@ -1035,7 +1035,7 @@ struct ImGuiContext
|
|
|
ImVector<ImGuiPopupData>OpenPopupStack; // Which popups are open (persistent)
|
|
|
ImVector<ImGuiPopupData>BeginPopupStack; // Which level of BeginPopup() we are in (reset every frame)
|
|
|
|
|
|
- // Navigation data (for gamepad/keyboard)
|
|
|
+ // Gamepad/keyboard Navigation
|
|
|
ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow'
|
|
|
ImGuiID NavId; // Focused item for navigation
|
|
|
ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem()
|
|
@@ -1076,7 +1076,7 @@ struct ImGuiContext
|
|
|
ImGuiNavMoveResult NavMoveResultLocalVisibleSet; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag)
|
|
|
ImGuiNavMoveResult NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag)
|
|
|
|
|
|
- // Tabbing system (older than Nav, active even if Nav is disabled. FIXME-NAV: This needs a redesign!)
|
|
|
+ // Legacy Tabbing system (older than Nav, active even if Nav is disabled, misnamed. FIXME-NAV: This needs a redesign!)
|
|
|
ImGuiWindow* FocusRequestCurrWindow; //
|
|
|
ImGuiWindow* FocusRequestNextWindow; //
|
|
|
int FocusRequestCurrCounterAll; // Any item being requested for focus, stored as an index (we on layout to be stable between the frame pressing TAB and the next frame, semi-ouch)
|
|
@@ -1085,6 +1085,10 @@ struct ImGuiContext
|
|
|
int FocusRequestNextCounterTab; // "
|
|
|
bool FocusTabPressed; //
|
|
|
|
|
|
+ // Range-Select/Multi-Select
|
|
|
+ // [This is unused in this branch, but left here to facilitate merging/syncing multiple branches]
|
|
|
+ ImGuiID MultiSelectScopeId;
|
|
|
+
|
|
|
// Render
|
|
|
ImDrawData DrawData; // Main ImDrawData instance to pass render information to the user
|
|
|
ImDrawDataBuilder DrawDataBuilder;
|
|
@@ -1133,10 +1137,6 @@ struct ImGuiContext
|
|
|
int TooltipOverrideCount;
|
|
|
ImVector<char> PrivateClipboard; // If no custom clipboard handler is defined
|
|
|
|
|
|
- // Range-Select/Multi-Select
|
|
|
- // [This is unused in this branch, but left here to facilitate merging/syncing multiple branches]
|
|
|
- ImGuiID MultiSelectScopeId;
|
|
|
-
|
|
|
// Platform support
|
|
|
ImVec2 PlatformImePos; // Cursor position request & last passed to the OS Input Method Editor
|
|
|
ImVec2 PlatformImeLastPos;
|
|
@@ -1247,6 +1247,8 @@ struct ImGuiContext
|
|
|
FocusRequestNextCounterAll = FocusRequestNextCounterTab = INT_MAX;
|
|
|
FocusTabPressed = false;
|
|
|
|
|
|
+ MultiSelectScopeId = 0;
|
|
|
+
|
|
|
DimBgRatio = 0.0f;
|
|
|
BackgroundDrawList._OwnerName = "##Background"; // Give it a name for debugging
|
|
|
ForegroundDrawList._OwnerName = "##Foreground"; // Give it a name for debugging
|
|
@@ -1276,8 +1278,6 @@ struct ImGuiContext
|
|
|
ScrollbarClickDeltaToGrabCenter = 0.0f;
|
|
|
TooltipOverrideCount = 0;
|
|
|
|
|
|
- MultiSelectScopeId = 0;
|
|
|
-
|
|
|
PlatformImePos = PlatformImeLastPos = ImVec2(FLT_MAX, FLT_MAX);
|
|
|
|
|
|
SettingsLoaded = false;
|