You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImStrv: Combo(), ListBox(): seems better to not introduce the ImStrv [] versions?
As 1) user is unlikely to store that on their end. 2) nowadays with lambdas isn't an easy user-side conversion.
Then we limit explosion of an already messy API.
IMGUI_API voidEndCombo(); // only call EndCombo() if BeginCombo() returns true!
682
682
IMGUI_API boolCombo(ImStrv label, int* current_item, constchar* const items[], int items_count, int popup_max_height_in_items = -1);
683
-
IMGUI_API boolCombo(ImStrv label, int* current_item, ImStrv const items[], int items_count, int popup_max_height_in_items = -1);
684
683
IMGUI_API boolCombo(ImStrv label, int* current_item, ImStrv (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items = -1);
685
684
IMGUI_API boolCombo(ImStrv label, int* current_item, constchar* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0"
686
685
@@ -808,7 +807,6 @@ namespace ImGui
808
807
IMGUI_API boolBeginListBox(ImStrv label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region
809
808
IMGUI_API voidEndListBox(); // only call EndListBox() if BeginListBox() returned true!
810
809
IMGUI_API boolListBox(ImStrv label, int* current_item, constchar* const items[], int items_count, int height_in_items = -1);
811
-
IMGUI_API boolListBox(ImStrv label, int* current_item, ImStrv const items[], int items_count, int height_in_items = -1);
812
810
IMGUI_API boolListBox(ImStrv label, int* current_item, ImStrv (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items = -1);
0 commit comments