| 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 | { |
no test coverage detected