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

Method GetPosition

IntelPresentMon/Core/source/win/Window.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 gfx::Vec2I Window::GetPosition() const
42 {
43 RECT rect{};
44 if (GetWindowRect(hWnd, &rect) == FALSE)
45 {
46 pmlog_warn(std::format("failed to get window rect {}", str::ToNarrow(GetTitle()))).hr();
47 }
48 return { rect.left, rect.top };
49 }
50
51 void Window::Move(gfx::Vec2I pos)
52 {

Callers 2

SacrificeCloneMethod · 0.80
RetargetPidCloneMethod · 0.80

Calls 1

ToNarrowFunction · 0.85

Tested by

no test coverage detected