| 532 | } |
| 533 | |
| 534 | Float2 WindowsWindow::ScreenToClient(const Float2& screenPos) const |
| 535 | { |
| 536 | ASSERT(HasHWND()); |
| 537 | |
| 538 | POINT p; |
| 539 | p.x = static_cast<LONG>(screenPos.X); |
| 540 | p.y = static_cast<LONG>(screenPos.Y); |
| 541 | ::ScreenToClient(_handle, &p); |
| 542 | return Float2(static_cast<float>(p.x), static_cast<float>(p.y)); |
| 543 | } |
| 544 | |
| 545 | Float2 WindowsWindow::ClientToScreen(const Float2& clientPos) const |
| 546 | { |
nothing calls this directly
no test coverage detected