| 663 | } |
| 664 | |
| 665 | void WindowsWindow::StartClippingCursor(const Rectangle& bounds) |
| 666 | { |
| 667 | _isClippingCursor = true; |
| 668 | *(RECT*)_clipCursorRect = { |
| 669 | (LONG)bounds.GetUpperLeft().X, |
| 670 | (LONG)bounds.GetUpperLeft().Y, |
| 671 | (LONG)bounds.GetBottomRight().X, |
| 672 | (LONG)bounds.GetBottomRight().Y |
| 673 | }; |
| 674 | if (IsFocused()) |
| 675 | { |
| 676 | _clipCursorSet = true; |
| 677 | ClipCursor((RECT*)_clipCursorRect); |
| 678 | } |
| 679 | } |
| 680 | |
| 681 | void WindowsWindow::EndClippingCursor() |
| 682 | { |
nothing calls this directly
no test coverage detected