{"action":"created","comment":{"url":"https://api.github.com/repos/tomaka/glutin/pulls/comments/40602106","id":40602106,"diff_hunk":"@@ -253,8 +253,35 @@ impl Window {\n     }\n \n     #[inline]\n-    pub fn set_cursor(&self, _cursor: MouseCursor) {\n-        unimplemented!()\n+    pub fn set_cursor(&self, cursor: MouseCursor) {\n+        let cursor_name = match cursor {\n+            MouseCursor::Arrow | MouseCursor::Default => winapi::IDC_ARROW,\n+            MouseCursor::Hand => winapi::IDC_HAND,\n+            MouseCursor::Text |  MouseCursor::VerticalText => winapi::IDC_IBEAM,\n+\n+            MouseCursor::NotAllowed | MouseCursor::NoDrop => winapi::IDC_NO,\n+            MouseCursor::Crosshair => winapi::IDC_CROSS,\n+            MouseCursor::EResize => winapi::IDC_SIZEWE,\n+            MouseCursor::NResize => winapi::IDC_SIZENS,\n+            MouseCursor::WResize => winapi::IDC_SIZEWE,\n+            MouseCursor::SResize => winapi::IDC_SIZENS,\n+            MouseCursor::EwResize | MouseCursor::ColResize => winapi::IDC_SIZEWE,\n+            MouseCursor::NsResize | MouseCursor::RowResize => winapi::IDC_SIZENS,\n+\n+            MouseCursor::Grabbing | MouseCursor::Grab | MouseCursor::Copy |\n+            MouseCursor::Alias    | MouseCursor::ContextMenu |\n+            MouseCursor::NeResize | MouseCursor::NwResize |\n+            MouseCursor::SeResize | MouseCursor::SwResize |\n+            MouseCursor::NwseResize | MouseCursor::NeswResize |","path":"src/api/win32/mod.rs","position":25,"original_position":25,"commit_id":"836cb18f0e4885ec767918fe91c694a499f010bc","original_commit_id":"836cb18f0e4885ec767918fe91c694a499f010bc","user":{"login":"Jayflux","id":936006,"avatar_url":"https://avatars.githubusercontent.com/u/936006?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayflux","html_url":"https://github.com/Jayflux","followers_url":"https://api.github.com/users/Jayflux/followers","following_url":"https://api.github.com/users/Jayflux/following{/other_user}","gists_url":"https://api.github.com/users/Jayflux/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayflux/subscriptions","organizations_url":"https://api.github.com/users/Jayflux/orgs","repos_url":"https://api.github.com/users/Jayflux/repos","events_url":"https://api.github.com/users/Jayflux/events{/privacy}","received_events_url":"https://api.github.com/users/Jayflux/received_events","type":"User","site_admin":false},"body":"@retep998 could you be more specific?\r\nYou've quoted the whole code block here","created_at":"2015-09-28T20:36:53Z","updated_at":"2015-09-28T20:36:53Z","html_url":"https://github.com/tomaka/glutin/pull/616#discussion_r40602106","pull_request_url":"https://api.github.com/repos/tomaka/glutin/pulls/616","_links":{"self":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/comments/40602106"},"html":{"href":"https://github.com/tomaka/glutin/pull/616#discussion_r40602106"},"pull_request":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/616"}}},"pull_request":{"url":"https://api.github.com/repos/tomaka/glutin/pulls/616","id":46008418,"html_url":"https://github.com/tomaka/glutin/pull/616","diff_url":"https://github.com/tomaka/glutin/pull/616.diff","patch_url":"https://github.com/tomaka/glutin/pull/616.patch","issue_url":"https://api.github.com/repos/tomaka/glutin/issues/616","number":616,"state":"open","locked":false,"title":"adding windows cursor strings","user":{"login":"Jayflux","id":936006,"avatar_url":"https://avatars.githubusercontent.com/u/936006?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayflux","html_url":"https://github.com/Jayflux","followers_url":"https://api.github.com/users/Jayflux/followers","following_url":"https://api.github.com/users/Jayflux/following{/other_user}","gists_url":"https://api.github.com/users/Jayflux/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayflux/subscriptions","organizations_url":"https://api.github.com/users/Jayflux/orgs","repos_url":"https://api.github.com/users/Jayflux/repos","events_url":"https://api.github.com/users/Jayflux/events{/privacy}","received_events_url":"https://api.github.com/users/Jayflux/received_events","type":"User","site_admin":false},"body":"Hey guys, ad @vvuk  i've started adding in the windows string for the cursor.\r\nCould you advise on what else needs doing here or how i can test this is working?\r\n\r\nI can't seem to find some of the windows cursor actions, such as grabbing.\r\nbeen looking here:\r\nhttps://msdn.microsoft.com/en-us/library/windows/desktop/ms648391(v=vs.85).aspx\r\n\r\nThanks","created_at":"2015-09-25T12:53:43Z","updated_at":"2015-09-28T20:36:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b9eac22316bd5f3c917bd27fc0f7d3d1bfc1d11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomaka/glutin/pulls/616/commits","review_comments_url":"https://api.github.com/repos/tomaka/glutin/pulls/616/comments","review_comment_url":"https://api.github.com/repos/tomaka/glutin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomaka/glutin/issues/616/comments","statuses_url":"https://api.github.com/repos/tomaka/glutin/statuses/836cb18f0e4885ec767918fe91c694a499f010bc","head":{"label":"Jayflux:implementingSetCursorWindows","ref":"implementingSetCursorWindows","sha":"836cb18f0e4885ec767918fe91c694a499f010bc","user":{"login":"Jayflux","id":936006,"avatar_url":"https://avatars.githubusercontent.com/u/936006?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayflux","html_url":"https://github.com/Jayflux","followers_url":"https://api.github.com/users/Jayflux/followers","following_url":"https://api.github.com/users/Jayflux/following{/other_user}","gists_url":"https://api.github.com/users/Jayflux/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayflux/subscriptions","organizations_url":"https://api.github.com/users/Jayflux/orgs","repos_url":"https://api.github.com/users/Jayflux/repos","events_url":"https://api.github.com/users/Jayflux/events{/privacy}","received_events_url":"https://api.github.com/users/Jayflux/received_events","type":"User","site_admin":false},"repo":{"id":43140875,"name":"glutin","full_name":"Jayflux/glutin","owner":{"login":"Jayflux","id":936006,"avatar_url":"https://avatars.githubusercontent.com/u/936006?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayflux","html_url":"https://github.com/Jayflux","followers_url":"https://api.github.com/users/Jayflux/followers","following_url":"https://api.github.com/users/Jayflux/following{/other_user}","gists_url":"https://api.github.com/users/Jayflux/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayflux/subscriptions","organizations_url":"https://api.github.com/users/Jayflux/orgs","repos_url":"https://api.github.com/users/Jayflux/repos","events_url":"https://api.github.com/users/Jayflux/events{/privacy}","received_events_url":"https://api.github.com/users/Jayflux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jayflux/glutin","description":"Pure Rust alternative to GLFW","fork":true,"url":"https://api.github.com/repos/Jayflux/glutin","forks_url":"https://api.github.com/repos/Jayflux/glutin/forks","keys_url":"https://api.github.com/repos/Jayflux/glutin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jayflux/glutin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jayflux/glutin/teams","hooks_url":"https://api.github.com/repos/Jayflux/glutin/hooks","issue_events_url":"https://api.github.com/repos/Jayflux/glutin/issues/events{/number}","events_url":"https://api.github.com/repos/Jayflux/glutin/events","assignees_url":"https://api.github.com/repos/Jayflux/glutin/assignees{/user}","branches_url":"https://api.github.com/repos/Jayflux/glutin/branches{/branch}","tags_url":"https://api.github.com/repos/Jayflux/glutin/tags","blobs_url":"https://api.github.com/repos/Jayflux/glutin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jayflux/glutin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jayflux/glutin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jayflux/glutin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jayflux/glutin/statuses/{sha}","languages_url":"https://api.github.com/repos/Jayflux/glutin/languages","stargazers_url":"https://api.github.com/repos/Jayflux/glutin/stargazers","contributors_url":"https://api.github.com/repos/Jayflux/glutin/contributors","subscribers_url":"https://api.github.com/repos/Jayflux/glutin/subscribers","subscription_url":"https://api.github.com/repos/Jayflux/glutin/subscription","commits_url":"https://api.github.com/repos/Jayflux/glutin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jayflux/glutin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jayflux/glutin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jayflux/glutin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jayflux/glutin/contents/{+path}","compare_url":"https://api.github.com/repos/Jayflux/glutin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jayflux/glutin/merges","archive_url":"https://api.github.com/repos/Jayflux/glutin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jayflux/glutin/downloads","issues_url":"https://api.github.com/repos/Jayflux/glutin/issues{/number}","pulls_url":"https://api.github.com/repos/Jayflux/glutin/pulls{/number}","milestones_url":"https://api.github.com/repos/Jayflux/glutin/milestones{/number}","notifications_url":"https://api.github.com/repos/Jayflux/glutin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jayflux/glutin/labels{/name}","releases_url":"https://api.github.com/repos/Jayflux/glutin/releases{/id}","created_at":"2015-09-25T12:50:16Z","updated_at":"2015-09-25T12:50:18Z","pushed_at":"2015-09-28T20:19:29Z","git_url":"git://github.com/Jayflux/glutin.git","ssh_url":"git@github.com:Jayflux/glutin.git","clone_url":"https://github.com/Jayflux/glutin.git","svn_url":"https://github.com/Jayflux/glutin","homepage":null,"size":9507,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tomaka:master","ref":"master","sha":"3e11e5ef69cc714c067dff49834f0e782c8f7fc6","user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars.githubusercontent.com/u/1412254?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"repo":{"id":22305594,"name":"glutin","full_name":"tomaka/glutin","owner":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars.githubusercontent.com/u/1412254?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomaka/glutin","description":"Pure Rust alternative to GLFW","fork":false,"url":"https://api.github.com/repos/tomaka/glutin","forks_url":"https://api.github.com/repos/tomaka/glutin/forks","keys_url":"https://api.github.com/repos/tomaka/glutin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomaka/glutin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomaka/glutin/teams","hooks_url":"https://api.github.com/repos/tomaka/glutin/hooks","issue_events_url":"https://api.github.com/repos/tomaka/glutin/issues/events{/number}","events_url":"https://api.github.com/repos/tomaka/glutin/events","assignees_url":"https://api.github.com/repos/tomaka/glutin/assignees{/user}","branches_url":"https://api.github.com/repos/tomaka/glutin/branches{/branch}","tags_url":"https://api.github.com/repos/tomaka/glutin/tags","blobs_url":"https://api.github.com/repos/tomaka/glutin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomaka/glutin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomaka/glutin/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomaka/glutin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomaka/glutin/statuses/{sha}","languages_url":"https://api.github.com/repos/tomaka/glutin/languages","stargazers_url":"https://api.github.com/repos/tomaka/glutin/stargazers","contributors_url":"https://api.github.com/repos/tomaka/glutin/contributors","subscribers_url":"https://api.github.com/repos/tomaka/glutin/subscribers","subscription_url":"https://api.github.com/repos/tomaka/glutin/subscription","commits_url":"https://api.github.com/repos/tomaka/glutin/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomaka/glutin/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomaka/glutin/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomaka/glutin/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomaka/glutin/contents/{+path}","compare_url":"https://api.github.com/repos/tomaka/glutin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomaka/glutin/merges","archive_url":"https://api.github.com/repos/tomaka/glutin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomaka/glutin/downloads","issues_url":"https://api.github.com/repos/tomaka/glutin/issues{/number}","pulls_url":"https://api.github.com/repos/tomaka/glutin/pulls{/number}","milestones_url":"https://api.github.com/repos/tomaka/glutin/milestones{/number}","notifications_url":"https://api.github.com/repos/tomaka/glutin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomaka/glutin/labels{/name}","releases_url":"https://api.github.com/repos/tomaka/glutin/releases{/id}","created_at":"2014-07-27T07:13:16Z","updated_at":"2015-09-27T10:43:02Z","pushed_at":"2015-09-28T20:19:30Z","git_url":"git://github.com/tomaka/glutin.git","ssh_url":"git@github.com:tomaka/glutin.git","clone_url":"https://github.com/tomaka/glutin.git","svn_url":"https://github.com/tomaka/glutin","homepage":null,"size":9507,"stargazers_count":309,"watchers_count":309,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":107,"mirror_url":null,"open_issues_count":97,"forks":107,"open_issues":97,"watchers":309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/616"},"html":{"href":"https://github.com/tomaka/glutin/pull/616"},"issue":{"href":"https://api.github.com/repos/tomaka/glutin/issues/616"},"comments":{"href":"https://api.github.com/repos/tomaka/glutin/issues/616/comments"},"review_comments":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/616/comments"},"review_comment":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomaka/glutin/pulls/616/commits"},"statuses":{"href":"https://api.github.com/repos/tomaka/glutin/statuses/836cb18f0e4885ec767918fe91c694a499f010bc"}}}}