MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / RenderFrameBorder

Method RenderFrameBorder

extern/imgui/imgui.cpp:3394–3404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3392}
3393
3394void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding)
3395{
3396 ImGuiContext& g = *GImGui;
3397 ImGuiWindow* window = g.CurrentWindow;
3398 const float border_size = g.Style.FrameBorderSize;
3399 if (border_size > 0.0f)
3400 {
3401 window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size);
3402 window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size);
3403 }
3404}
3405
3406void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags)
3407{

Callers

nothing calls this directly

Calls 2

ImVec2Function · 0.85
AddRectMethod · 0.80

Tested by

no test coverage detected