Lines Matching defs:size

558     ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f);
560 const ImRect bb(pos, pos + size);
561 ItemSize(size, style.FramePadding.y);
610 // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size.
614 ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f);
615 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
616 ItemSize(size);
626 bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags)
634 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
636 ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f);
650 RenderArrow(bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), dir);
774 // But we maintain a minimum size in pixel to allow for the user to still aim inside.
842 void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col)
848 ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
868 // frame_padding > 0: set framing size
870 bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col)
880 // We could hash the size/uv to create a unique ID but that would prevent the user from animating UV.
886 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2);
887 const ImRect image_bb(window->DC.CursorPos + padding, window->DC.CursorPos + padding + size);
1024 // size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size
1102 void ImGui::Dummy(const ImVec2& size)
1108 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
1235 // Minimum pane size
1356 // Peak into expected window size so we can position it
2118 grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit
2452 bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power)
2463 const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size);
2512 bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, float power)
2514 return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, power);
2517 bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format)
2519 return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format);
2833 bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
2835 return InputTextEx(label, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data);
2888 if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n
2910 const ImVec2 size = InputTextCalcTextSizeW(text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true);
2912 r->x1 = size.x;
2913 r->baseline_y_delta = size.y;
2915 r->ymax = size.y;
3154 ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? GetTextLineHeight() * 8.0f : label_size.y) + style.FramePadding.y*2.0f); // Arbitrary default of 8 lines high for multi-line
3155 const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size);
3175 size.x -= draw_window->ScrollbarSizes.x;
3621 const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + size.x, frame_bb.Min.y + size.y); // Not using frame_bb.Max because we have adjusted size
3679 text_size = ImVec2(size.x, line_count * g.FontSize);
3688 const float scroll_increment_x = size.x * 0.25f;
3691 else if (cursor_offset.x - size.x >= edit_state.ScrollX)
3692 edit_state.ScrollX = (float)(int)(cursor_offset.x - size.x + scroll_increment_x);
3705 else if (cursor_offset.y - size.y >= scroll_y)
3706 scroll_y = cursor_offset.y - size.y;
3771 text_size = ImVec2(size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_end) * g.FontSize); // We don't need width
4410 bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size)
4419 if (size.x == 0.0f)
4420 size.x = default_size;
4421 if (size.y == 0.0f)
4422 size.y = default_size;
4423 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
4424 ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f);
4435 float grid_step = ImMin(size.x, size.y) / 2.99f;
4582 ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function
5035 ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y);
5038 ImRect bb_inner(pos, pos + size);
5045 ImVec2 size_draw((size_arg.x != 0 && !(flags & ImGuiSelectableFlags_DrawFillAvailWidth)) ? size_arg.x : w_draw, size_arg.y != 0.0f ? size_arg.y : size.y);
5131 // Helper to calculate the size of a listbox and display a label on the right.
5144 ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.4f + style.ItemSpacing.y);
5145 ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y));
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.
5178 ImVec2 size;
5179 size.x = 0.0f;
5180 size.y = GetTextLineHeightWithSpacing() * height_in_items_f + style.FramePadding.y * 2.0f;
5181 return ListBoxHeader(label, size);
5193 // Redeclare item size so that it includes the label (we have stored the full size in LastItemRect)
5722 menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display)
6032 // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window.
6263 // We use g.Style.FramePadding.y to match the square ArrowButton size
6362 // Calculate tab contents size
6363 ImVec2 size = TabItemCalcSize(label, p_open != NULL);
6373 tab->Width = size.x;
6377 tab->WidthContents = size.x;
6389 tab->NameOffset = tab_bar->TabsNames.size();
6430 size.x = tab->Width;
6433 ImRect bb(pos, pos + size);
6547 ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f);
6549 size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle.
6551 size.x += g.Style.FramePadding.x + 1.0f;
6552 return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y);