void cursor::clip(const window& win) { RECT winrect; GetWindowRect(reinterpret_cast<HWND>(win.get_handle()), &winrect); ClipCursor(&winrect); }