{"action":"created","issue":{"url":"https://api.github.com/repos/SFML/SFML/issues/715","labels_url":"https://api.github.com/repos/SFML/SFML/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/SFML/SFML/issues/715/comments","events_url":"https://api.github.com/repos/SFML/SFML/issues/715/events","html_url":"https://github.com/SFML/SFML/pull/715","id":45120616,"number":715,"title":"Clipboard Support","user":{"login":"Mischa-Alff","id":1387364,"avatar_url":"https://avatars.githubusercontent.com/u/1387364?v=3","gravatar_id":"","url":"https://api.github.com/users/Mischa-Alff","html_url":"https://github.com/Mischa-Alff","followers_url":"https://api.github.com/users/Mischa-Alff/followers","following_url":"https://api.github.com/users/Mischa-Alff/following{/other_user}","gists_url":"https://api.github.com/users/Mischa-Alff/gists{/gist_id}","starred_url":"https://api.github.com/users/Mischa-Alff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mischa-Alff/subscriptions","organizations_url":"https://api.github.com/users/Mischa-Alff/orgs","repos_url":"https://api.github.com/users/Mischa-Alff/repos","events_url":"https://api.github.com/users/Mischa-Alff/events{/privacy}","received_events_url":"https://api.github.com/users/Mischa-Alff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SFML/SFML/labels/feature","name":"feature","color":"23BA35"},{"url":"https://api.github.com/repos/SFML/SFML/labels/m:sfml-window","name":"m:sfml-window","color":"cccccc"},{"url":"https://api.github.com/repos/SFML/SFML/labels/s:undecided","name":"s:undecided","color":"ffe20a"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-10-07T15:23:03Z","updated_at":"2015-07-04T18:30:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SFML/SFML/pulls/715","html_url":"https://github.com/SFML/SFML/pull/715","diff_url":"https://github.com/SFML/SFML/pull/715.diff","patch_url":"https://github.com/SFML/SFML/pull/715.patch"},"body":"Please don't merge this yet. As of writing this, this PR is for review purposes.\r\n\r\nI've added clipboard support to SFML for Windows and Linux (X11). Still working on Android.\r\nThis PR also adds a clipboard example (which is primarily for testing, but also serves as a viable example for the usage of the clipboard API).\r\n\r\nThe API is simple. The user sees it as: `sf::String sf::Window::getClipboard()` and `void sf::Window::setClipboard(const sf::String&)`.\r\n\r\nClipboard support is really important. All of SFML's competitors have it built-in, and using 3rd-party software for it often is buggy or doesn't work. I've added clipboard support because it's not only essential to game development (copy & pasting links to chat or IPs to the server browser, or copying level codes to the clipboard in case you're going for a Gameboy style), but it's also essential to general application development.\r\n\r\nFor now the API only supports text. Image support is more complicated and not as much of a necessity as text support is.\r\n\r\nThe X11 implementation is fully ICCCM compliant.\r\n\r\nI tried my best to make the code coherent and to comment everything. It was my first time working with X11 (and thus Xproto and xcb), so there may be some issues with it.\r\n\r\nThis PR uses the XCB patch."},"comment":{"url":"https://api.github.com/repos/SFML/SFML/issues/comments/118540295","html_url":"https://github.com/SFML/SFML/pull/715#issuecomment-118540295","issue_url":"https://api.github.com/repos/SFML/SFML/issues/715","id":118540295,"user":{"login":"mantognini","id":693483,"avatar_url":"https://avatars.githubusercontent.com/u/693483?v=3","gravatar_id":"","url":"https://api.github.com/users/mantognini","html_url":"https://github.com/mantognini","followers_url":"https://api.github.com/users/mantognini/followers","following_url":"https://api.github.com/users/mantognini/following{/other_user}","gists_url":"https://api.github.com/users/mantognini/gists{/gist_id}","starred_url":"https://api.github.com/users/mantognini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantognini/subscriptions","organizations_url":"https://api.github.com/users/mantognini/orgs","repos_url":"https://api.github.com/users/mantognini/repos","events_url":"https://api.github.com/users/mantognini/events{/privacy}","received_events_url":"https://api.github.com/users/mantognini/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T18:30:03Z","updated_at":"2015-07-04T18:30:03Z","body":"This PR cannot be merged as is. Also I don't remember if the implementation needs only small changes or complete rewrite... maybe we should close it for now?"}}