Demo: BeginCombo() demo code

This commit is contained in:
omar
2017-12-25 17:40:47 +01:00
parent 3849bb4470
commit 3d48f5b8c2
2 changed files with 22 additions and 5 deletions

View File

@ -300,6 +300,7 @@ namespace ImGui
// Widgets: Combo Box
// The new BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it.
// The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose.
IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0);
IMGUI_API void EndCombo();
IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1);