MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetBoxRect

Method GetBoxRect

IntelPresentMon/Core/source/gfx/layout/Element.cpp:163–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 {}
162
163 Rect Element::GetBoxRect() const
164 {
165 if (!IsLaidOut())
166 {
167 pmlog_error("Trying to access element rect before laid out");
168 throw Except<Exception>();
169 }
170 return { *boxPosition, { *boxDimensions.width, *boxDimensions.height } };
171 }
172
173 Rect Element::GetBackgroundRect() const
174 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected