Internals: NextWindow: Renamed, moved functions to member.

This commit is contained in:
omar
2018-01-03 12:28:16 +01:00
parent e339949de1
commit 7fcbd45500
2 changed files with 56 additions and 61 deletions

View File

@ -487,6 +487,11 @@ struct ImGuiNextWindowData
SizeConstraintCallback = NULL;
SizeConstraintCallbackUserData = NULL;
}
void Clear()
{
PosCond = SizeCond = ContentSizeCond = CollapsedCond = SizeConstraintCond = FocusCond = 0;
}
};
// Main state for ImGui
@ -532,7 +537,7 @@ struct ImGuiContext
ImVector<ImFont*> FontStack; // Stack for PushFont()/PopFont()
ImVector<ImGuiPopupRef> OpenPopupStack; // Which popups are open (persistent)
ImVector<ImGuiPopupRef> CurrentPopupStack; // Which level of BeginPopup() we are in (reset every frame)
ImGuiNextWindowData NextWindow; // Storage for SetNextWindow** functions
ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions
bool NextTreeNodeOpenVal; // Storage for SetNextTreeNode** functions
ImGuiCond NextTreeNodeOpenCond;