• Home
  • Raw
  • Download

Lines Matching refs:ImMax

190                     text_size.x = ImMax(text_size.x, line_size.x);  in TextUnformatted()
356 …const float text_base_offset_y = ImMax(0.0f, window->DC.CurrentLineTextBaseOffset); // Latch befor… in BulletTextV()
357 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in BulletTextV()
358 …+ (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label… in BulletTextV()
650 …RenderArrow(bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.Fon… in ArrowButtonEx()
680 …window->DrawList->AddCircleFilled(center, ImMax(2.0f, radius), GetColorU32(held ? ImGuiCol_ButtonA… in CloseButton()
775 …IM_ASSERT(ImMax(win_size_contents_v, win_size_avail_v) > 0.0f); // Adding this assert to check if … in Scrollbar()
776 const float win_size_v = ImMax(ImMax(win_size_contents_v, win_size_avail_v), 1.0f); in Scrollbar()
786 float scroll_max = ImMax(1.0f, win_size_contents_v - win_size_avail_v); in Scrollbar()
937 const float pad = ImMax(1.0f, (float)(int)(square_sz / 6.0f)); in Checkbox()
998 const float pad = ImMax(1.0f, (float)(int)(square_sz / 6.0f)); in RadioButton()
1068 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in Bullet()
1136 …window->DC.CurrentLineSize.y = ImMax(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePaddi… in AlignTextToFramePadding()
1137 …window->DC.CurrentLineTextBaseOffset = ImMax(window->DC.CurrentLineTextBaseOffset, g.Style.FramePa… in AlignTextToFramePadding()
1236 float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); in SplitterBehavior()
1237 float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); in SplitterBehavior()
1339 … g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); in BeginCombo()
1756 v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); in DragBehaviorT()
1999 …loat("##max", v_current_max, v_speed, (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_… in DragFloatRange2()
2044 …gInt("##max", v_current_max, v_speed, (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_… in DragIntRange2()
2093 … const float f = (float)((v_clamped - ImMax((TYPE)0, v_min)) / (v_max - ImMax((TYPE)0, v_min))); in SliderCalcRatioFromValueT()
2118 …grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: i… in SliderBehaviorT()
2217 v_new = ImLerp(ImMax(v_min, (TYPE)0), v_max, a); in SliderBehaviorT()
2671 PushItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); in InputScalar()
2868 text_size.x = ImMax(text_size.x, line_width); in InputTextCalcTextSizeW()
2962 obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); in STB_TEXTEDIT_INSERTCHARS()
3046 int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; in InsertChars()
3370 …row) && is_multiline) { if (io.KeyCtrl) SetWindowScrollY(draw_window, ImMax(draw_window->Scrol… in InputTextEx()
3424 …const int ie = edit_state.HasSelection() ? ImMax(edit_state.StbState.select_start, edit_state.StbS… in InputTextEx()
3582 callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); in InputTextEx()
3690 … edit_state.ScrollX = (float)(int)ImMax(0.0f, cursor_offset.x - scroll_increment_x); in InputTextEx()
3704 scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); in InputTextEx()
3719 …const ImWchar* text_selected_end = text_begin + ImMax(edit_state.StbState.select_start, edit_state… in InputTextEx()
3878 …const float w_item_one = ImMax(1.0f, (float)(int)((w_items_all - (style.ItemInnerSpacing.x) * (co… in ColorEdit4()
3879 …const float w_item_last = ImMax(1.0f, (float)(int)(w_items_all - (w_item_one + style.ItemInnerSpac… in ColorEdit4()
4134 …float sv_picker_size = ImMax(bars_width * 1, CalcItemWidth() - (alpha_bar ? 2 : 1) * (bars_width +… in ColorPicker4()
4319 const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); in ColorPicker4()
4582 …ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpa… in ColorPickerOptionsPopup()
4775 …const float text_base_offset_y = ImMax(padding.y, window->DC.CurrentLineTextBaseOffset); // Latch … in TreeNodeBehavior()
4776 …const float frame_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + style.FramePaddi… in TreeNodeBehavior()
5044 float w_draw = ImMax(label_size.x, window->Pos.x + max_x - window_padding.x - pos.x); in Selectable()
5145 ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); in ListBoxHeader()
5282 v_max = ImMax(v_max, v); in PlotEx()
5475 NextWidths[0] = ImMax(NextWidths[0], w0); in DeclColumns()
5476 NextWidths[1] = ImMax(NextWidths[1], w1); in DeclColumns()
5477 NextWidths[2] = ImMax(NextWidths[2], w2); in DeclColumns()
5480 return ImMax(Width, NextWidth); in DeclColumns()
5485 return ImMax(0.0f, avail_w - Width); in CalcExtraSpace()
5492 …g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.Disp… in BeginMainMenuBar()
5536 …0.5f), ImFloor(bar_rect.Min.y + window->WindowBorderSize + 0.5f), ImFloor(ImMax(bar_rect.Min.x, ba… in BeginMenuBar()
5630 float extra_w = ImMax(0.0f, GetContentRegionAvail().x - w); in BeginMenu()
5657 …tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -100.0f); // triangle is maximum 200 high t… in BeginMenu()
5772 float extra_w = ImMax(0.0f, GetContentRegionAvail().x - w); in MenuItem()
5941 tab_bar->ContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, 0.0f); in EndTabBar()
6085 tab_bar->OffsetMax = ImMax(offset_x - g.Style.ItemInnerSpacing.x, 0.0f); in TabBarLayout()
6180 return ImMax(scrolling, 0.0f); in TabBarScrollClamp()
6438 …PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->BarRect.Min.x), bb.Min.y - 1), ImVec2(tab_bar->BarRec… in TabItemEx()
6562 const float rounding = ImMax(0.0f, ImMin(g.Style.TabRounding, width * 0.5f - 1.0f)); in TabItemBackground()