SetNextWindowPos: added a ImVec2 pivot parameter for positioning a given a center, bottom-right position, etc. As a generalization of SetNextWindowPosCenter() which is now obsolete. This will be useful for combo-like popups as well.
Demo: Simple-overlay window uses the SetWindowPos pivot to select a corner to position itself at.
1 parent 0a55573 commit 4b82759598e34aed179177ecaa00e774c0d23484
@omar omar authored on 25 Sep 2017
Showing 4 changed files
View
imgui.cpp
View
imgui.h
View
imgui_demo.cpp
View
imgui_internal.h