Lines Matching refs:items_count
1272 static float CalcMaxPopupHeightFromItemCount(int items_count)
1275 if (items_count <= 0)
1277 return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2);
1401 int items_count = 0;
1405 if (idx == items_count)
1408 items_count++;
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)
1424 if (*current_item >= 0 && *current_item < items_count)
1437 for (int i = 0; i < items_count; i++)
1459 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items)
1461 const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items);
1468 int items_count = 0;
1473 items_count++;
1475 bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items);
5166 bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items)
5170 // We don't add this extra bit if items_count <= height_in_items. It is slightly dodgy, because it means a dynamic list of items will make the widget resize occasionally when it crosses that size.
5173 height_in_items = ImMin(items_count, 7);
5175 float height_in_items_f = (height_in_items < items_count) ? (height_in_items + 0.25f) : (height_in_items + 0.00f);
5201 bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items)
5203 const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items);
5207 bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items)
5209 if (!ListBoxHeader(label, items_count, height_in_items))
5215 ImGuiListClipper clipper(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to.