Relative order of Child windows creation is preserved during sort (#595)

This commit is contained in:
ocornut
2016-04-19 18:31:25 +02:00
parent d92f1deff8
commit fc3b8d0a56
2 changed files with 7 additions and 1 deletions

View File

@ -596,6 +596,7 @@ struct IMGUI_API ImGuiWindow
char* Name;
ImGuiID ID;
ImGuiWindowFlags Flags;
int IndexWithinParent; // Order within immediate parent window, if we are a child window. Otherwise 0.
ImVec2 PosFloat;
ImVec2 Pos; // Position rounded-up to nearest pixel
ImVec2 Size; // Current size (==SizeFull or collapsed title bar size)