MCPcopy Create free account
hub / github.com/cinder/Cinder / RenderWindowOuterSingleBorder

Function RenderWindowOuterSingleBorder

src/imgui/imgui.cpp:6954–6962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6952}
6953
6954static void RenderWindowOuterSingleBorder(ImGuiWindow* window, int border_n, ImU32 border_col, float border_size)
6955{
6956 const ImGuiResizeBorderDef& def = resize_border_def[border_n];
6957 const float rounding = window->WindowRounding;
6958 const ImRect border_r = GetResizeBorderRect(window, border_n, rounding, 0.0f);
6959 window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle);
6960 window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f);
6961 window->DrawList->PathStroke(border_col, ImDrawFlags_None, border_size);
6962}
6963
6964static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window)
6965{

Callers 1

Calls 5

GetResizeBorderRectFunction · 0.85
ImLerpFunction · 0.85
ImVec2Function · 0.85
PathArcToMethod · 0.80
PathStrokeMethod · 0.80

Tested by

no test coverage detected