Lines Matching defs:items

92 static const float          DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f;    // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior.
805 // (this isn't the regular behavior of buttons, but it doesn't affect the user much because navigation tends to keep items visible).
1339 if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height.
1500 // Shrink excess width from a set of item, by removing width from the larger items first.
1501 // Set items Width to -1.0f to disable shrinking this item.
1502 void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess)
1506 if (items[0].Width >= 0.0f)
1507 items[0].Width = ImMax(items[0].Width - width_excess, 1.0f);
1510 ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer);
1514 while (count_same_width < count && items[0].Width <= items[count_same_width].Width)
1516 float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f);
1521 items[item_n].Width -= width_to_remove_per_item;
1530 float width_rounded = ImFloor(items[n].Width);
1531 width_excess += items[n].Width - width_rounded;
1532 items[n].Width = width_rounded;
1536 if (items[n].Index < (int)(width_excess + 0.01f))
1537 items[n].Width += 1.0f;
1753 const char* const* items = (const char* const*)data;
1755 *out_text = items[idx];
1797 // Display items
1826 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items)
1828 const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items);
1832 // Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0"
6218 // - (2) usage will fail with clipped items
6302 // Size default to hold ~7.25 items.
6303 // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar.
6355 bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items)
6357 const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items);
6376 // Assume all items have even height (= 1 line of text). If you need items of different height,
6877 // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f.
6878 // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system.
7042 // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f.
7043 // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system.
7228 // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap
7512 // Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack.