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

Function getTopLeftAbsolute

imgui-SFML.cpp:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136[[nodiscard]] ImVec2 getTopLeftAbsolute(const sf::FloatRect& rect)
137{
138 return toImVec2(toSfVector2f(ImGui::GetCursorScreenPos()) + rect.position);
139}
140
141[[nodiscard]] ImVec2 getDownRightAbsolute(const sf::FloatRect& rect)
142{

Callers 2

DrawRectFunction · 0.85
DrawRectFilledFunction · 0.85

Calls 2

toImVec2Function · 0.85
toSfVector2fFunction · 0.85

Tested by

no test coverage detected