Home
last modified time | relevance | path

Searched refs:ImClamp (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/imgui/
Dimgui_widgets.cpp765 …bb.Expand(ImVec2(-ImClamp((float)(int)((bb.Max.x - bb.Min.x - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp in Scrollbar()
777 …const float grab_h_pixels = ImClamp(scrollbar_size_v * (win_size_avail_v / win_size_v), style.Grab… in Scrollbar()
898 …RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, style.Fra… in ImageButton()
1057 …RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_siz… in ProgressBar()
2083 const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); in SliderCalcRatioFromValueT()
2154 …clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_u… in SliderBehaviorT()
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()
3924 … IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0],0,255), ImClamp(i[1],0,255), ImClamp(i[2],0,… in ColorEdit4()
3926 …rmatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0],0,255), ImClamp(i[1],0,255), ImCl… in ColorEdit4()
[all …]
Dimgui_internal.h229 template<typename T> static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ?… in ImClamp() function
235 static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.… in ImClamp() function
509 …void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(… in ClipWithFull()
Dimgui.cpp3273 …const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.5… in UpdateMouseWheel()
3955 start = ImClamp(start, 0, items_count); in CalcListClipping()
3956 end = ImClamp(end + 1, start, items_count); in CalcListClipping()
4534 …new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->… in CalcSizeAfterConstraint()
4535 …new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->… in CalcSizeAfterConstraint()
4588 …ImVec2 size_auto_fit = ImClamp(size_contents, size_min, ImMax(size_min, g.IO.DisplaySize - style.D… in CalcSizeAutoFit()
7024 ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); in FindBestWindowPosForPopupEx()
7148 r.Min.y = ImClamp(r.Min.y, clip_rect.Min.y, clip_rect.Max.y); in NavClampRectToVisibleAreaForMoveDir()
7149 r.Max.y = ImClamp(r.Max.y, clip_rect.Min.y, clip_rect.Max.y); in NavClampRectToVisibleAreaForMoveDir()
7153 r.Min.x = ImClamp(r.Min.x, clip_rect.Min.x, clip_rect.Max.x); in NavClampRectToVisibleAreaForMoveDir()
[all …]
Dimgui_draw.cpp1320 float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); in ShadeVertsLinearColorGradientKeepAlpha()
1344 … vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); in ShadeVertsLinearUV()
2022 …const float char_advance_x_mod = ImClamp(char_advance_x_org, cfg.GlyphMinAdvanceX, cfg.GlyphMaxAdv… in ImFontAtlasBuildWithStbTruetype()
3010 …rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0… in RenderRectFilledRangeH()