MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / DrawRect

Function DrawRect

imgui-SFML.cpp:869–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869void DrawRect(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners, float thickness)
870{
871 ImDrawList* draw_list = ImGui::GetWindowDrawList();
872 draw_list->AddRect(getTopLeftAbsolute(rect),
873 getDownRightAbsolute(rect),
874 ColorConvertFloat4ToU32(toImColor(color)),
875 rounding,
876 rounding_corners,
877 thickness);
878}
879
880void DrawRectFilled(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners)
881{

Callers

nothing calls this directly

Calls 3

getTopLeftAbsoluteFunction · 0.85
getDownRightAbsoluteFunction · 0.85
toImColorFunction · 0.85

Tested by

no test coverage detected