Home
last modified time | relevance | path

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

/external/mesa3d/src/imgui/
Dimgui_widgets.cpp357 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in BulletTextV()
836 …grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImMin(ImLerp(bb.Min.x, bb.Ma… in Scrollbar()
838 …grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImMin(ImLerp(bb.Mi… in Scrollbar()
898 …RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, style.Fra… in ImageButton()
1068 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in Bullet()
1996 … (v_min >= v_max) ? -FLT_MAX : v_min, (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_… in DragFloatRange2()
2041 …, (v_min >= v_max) ? INT_MIN : v_min, (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_… in DragIntRange2()
2088 const float f = 1.0f - (float)((v_clamped - v_min) / (ImMin((TYPE)0, v_max) - v_min)); in SliderCalcRatioFromValueT()
2119 grab_sz = ImMin(grab_sz, slider_sz); in SliderBehaviorT()
2206 v_new = ImLerp(ImMin(v_max, (TYPE)0), v_min, a); in SliderBehaviorT()
[all …]
Dimgui_internal.h227 template<typename T> static inline T ImMin(T lhs, T rhs) { return lhs < rhs … in ImMin() function
233 static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… in ImMin() function
247 …oat current, float target, float speed) { if (current < target) return ImMin(current + speed, t… in ImLinearSweep()
508 …void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max)… in ClipWith()
582 …State.cursor = ImMin(StbState.cursor, CurLenW); StbState.select_start = ImMin(StbState.select_star… in CursorClamp()
Dimgui.cpp1272 float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); in ImTriangleClosestPoint()
3286 …scroll_amount = (float)(int)ImMin(scroll_amount, (scroll_window->ContentsRegionRect.GetHeight() + … in UpdateMouseWheel()
3490 g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); in NewFrame()
4587 size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); in CalcSizeAutoFit()
4640 scroll.x = ImMin(scroll.x, ImGui::GetWindowScrollMaxX(window)); in CalcNextScrollFromScrollTargetAndClamp()
4641 scroll.y = ImMin(scroll.y, ImGui::GetWindowScrollMaxY(window)); in CalcNextScrollFromScrollTargetAndClamp()
4783 …nav_resize_delta *= ImFloor(NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale… in UpdateManualResize()
5145 window->Pos = ImMin(window->Pos, g.IO.DisplaySize - padding); in Begin()
7070 pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); in FindBestWindowPosForPopupEx()
7071 pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); in FindBestWindowPosForPopupEx()
[all …]
Dimgui_draw.cpp1023 …rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((rounding_corners & ImDrawCornerFlags_Top) == I… in PathRect()
1024 …rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((rounding_corners & ImDrawCornerFlags_Left) == I… in PathRect()
1199 clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); in AddText()
1200 clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); in AddText()
1341 const ImVec2 min = ImMin(uv_a, uv_b); in ShadeVertsLinearUV()
3010 …rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0… in RenderRectFilledRangeH()
3035 const float x1 = ImMin(p1.x, rect.Max.x - rounding); in RenderRectFilledRangeH()