Scrollbar: rounding corners selected based on a generic helper.

CalcRoundingFlagsForRectInRect() is backported and used multiple times by docking.
This commit is contained in:
ocornut
2026-01-29 17:23:28 +01:00
parent 6cc7787c77
commit 5166bec5d8
3 changed files with 13 additions and 14 deletions
+1
View File
@@ -3606,6 +3606,7 @@ namespace ImGui
IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col);
IMGUI_API void RenderRectFilledInRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float fill_x0, float fill_x1, float rounding);
IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding);
IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold);
// Widgets: Text
IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0);