BeginCombo(): rework internals a little to make it easier to provide custom combo-like elements relying in BeginCombo().

BeginPopupEx() doesn't enforce AlwaysAutoResize flag anymore.
This commit is contained in:
omar
2017-09-25 21:45:34 +02:00
parent a34edb810e
commit 0d56140b4a
3 changed files with 22 additions and 14 deletions

View File

@ -788,7 +788,7 @@ namespace ImGui
IMGUI_API void PushColumnClipRect(int column_index = -1);
// FIXME-WIP: New Combo API
IMGUI_API bool BeginCombo(const char* label, const char* preview_value, float popup_opened_height);
IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImVec2 popup_size = ImVec2(0.0f,0.0f));
IMGUI_API void EndCombo();
// NB: All position are in absolute pixels coordinates (never using window coordinates internally)