Home
last modified time | relevance | path

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

/external/mesa3d/src/imgui/
Dimgui_widgets.cpp190 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()
[all …]
Dimgui.cpp2342 if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); in RenderTextClippedEx()
2343 if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); in RenderTextClippedEx()
2445 float thickness = ImMax(sz / 5.0f, 1.0f); in RenderCheckMark()
2751 const float line_height = ImMax(window->DC.CurrentLineSize.y, size.y); in ItemSize()
2752 const float text_base_offset = ImMax(window->DC.CurrentLineTextBaseOffset, text_offset_y); in ItemSize()
2757 window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); in ItemSize()
2758 …window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.Item… in ItemSize()
2933 …size.x = (size.x == 0.0f) ? default_x : ImMax(content_max.x - g.CurrentWindow->DC.CursorPos.x, 4.0… in CalcItemSize()
2935 …size.y = (size.y == 0.0f) ? default_y : ImMax(content_max.y - g.CurrentWindow->DC.CursorPos.y, 4.0… in CalcItemSize()
2950 return ImMax(wrap_pos_x - pos.x, 1.0f); in CalcWrapWidthForPos()
[all …]
Dimgui_draw.cpp491 cr.z = ImMax(cr.x, cr.z); in PushClipRect()
492 cr.w = ImMax(cr.y, cr.w); in PushClipRect()
1197 clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); in AddText()
1198 clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); in AddText()
1342 const ImVec2 max = ImMax(uv_a, uv_b); in ShadeVertsLinearUV()
1832 src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); in ImFontAtlasBuildWithStbTruetype()
1834 dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); in ImFontAtlasBuildWithStbTruetype()
1958 … atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); in ImFontAtlasBuildWithStbTruetype()
2090 atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); in ImFontAtlasBuildPackCustomRects()
2432 max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); in BuildLookupTable()
[all …]
Dimgui_internal.h228 template<typename T> static inline T ImMax(T lhs, T rhs) { return lhs >= rhs… in ImMax() function
234 static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… in ImMax() function
247 …rget) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, t… in ImLinearSweep()
508 …void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max)… in ClipWith()