Searched refs:popup_max_height_in_items (Results 1 - 4 of 4) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui.h404 IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1);
405 IMGUI_API bool Combo(const char* label, int* current_item, const char* 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"
406 IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1);
H A Dimgui_widgets.cpp1346 int popup_max_height_in_items = -1; local in function:ImGui::BeginCombo
1347 if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8;
1348 else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4;
1349 else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20;
1350 SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items)));
1418 bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) argument
1427 // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here.
1428 if (popup_max_height_in_items != -1 && !g.NextWindowData.SizeConstraintCond)
1429 SetNextWindowSizeConstraints(ImVec2(0,0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items)));
/xsrc/external/mit/MesaLib/dist/src/imgui/
H A Dimgui.h404 IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1);
405 IMGUI_API bool Combo(const char* label, int* current_item, const char* 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"
406 IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1);
H A Dimgui_widgets.cpp1346 int popup_max_height_in_items = -1; local in function:ImGui::BeginCombo
1347 if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8;
1348 else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4;
1349 else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20;
1350 SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items)));
1418 bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) argument
1427 // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here.
1428 if (popup_max_height_in_items != -1 && !g.NextWindowData.SizeConstraintCond)
1429 SetNextWindowSizeConstraints(ImVec2(0,0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items)));

Completed in 42 milliseconds