{"action":"closed","number":851,"pull_request":{"url":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851","id":91925038,"html_url":"https://github.com/PistonDevelopers/conrod/pull/851","diff_url":"https://github.com/PistonDevelopers/conrod/pull/851.diff","patch_url":"https://github.com/PistonDevelopers/conrod/pull/851.patch","issue_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/851","number":851,"state":"closed","locked":false,"title":"WIP - Introduce new all_widgets.rs example that actually uses all widgets. Use this same gui between different backend examples for easier testing and comparison.","user":{"login":"mitchmindtree","id":4587373,"avatar_url":"https://avatars.githubusercontent.com/u/4587373?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchmindtree","html_url":"https://github.com/mitchmindtree","followers_url":"https://api.github.com/users/mitchmindtree/followers","following_url":"https://api.github.com/users/mitchmindtree/following{/other_user}","gists_url":"https://api.github.com/users/mitchmindtree/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchmindtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchmindtree/subscriptions","organizations_url":"https://api.github.com/users/mitchmindtree/orgs","repos_url":"https://api.github.com/users/mitchmindtree/repos","events_url":"https://api.github.com/users/mitchmindtree/events{/privacy}","received_events_url":"https://api.github.com/users/mitchmindtree/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n\r\nThe old `all_widgets.rs` example has been renamed to `old_demo.rs`.\r\n\r\nThe idea behind this new example is to:\r\n\r\n1. Actually demonstrate all widgets in a single example that is easy to add to as we add more widgets and\r\n2. Abstract the `DemoApp`, `gui` function and `Theme` used into their own module so that they can be re-used between the `all_widgets.rs`, `glutin_glium.rs` and `glutin_gfx.rs` examples. This should make it easier to get the `glutin_glium.rs` and `glutin_gfx.rs` examples going, as we can refer to the `all_widgets.rs` as a \"correct\" example. Related to #752.\r\n\r\nThe new example is a small, vertically scrollable window which demonstrates each widget under their own heading for clarity. It begins with primitive widgets before showing more complex widgets.\r\n\r\nThe new example can be seen by cloning this fork and executing this command:\r\n\r\n```\r\ncargo run --release --example all_widgets\r\n````\r\n\r\nWidgets included so far:\r\n\r\n- [x] Text\r\n- [x] Rectangle\r\n- [x] Oval\r\n- [x] Circle\r\n- [x] Line\r\n- [x] PointPath\r\n- [x] Polygon\r\n- [x] Image (rust logo)\r\n- [x] Canvas\r\n- [x] NumberDialer\r\n- [x] PlotPath\r\n- [x] Button\r\n- [x] XYPad\r\n- [x] Toggle\r\n- [x] Scrollbar\r\n- [ ] Image (demonstrate use of each color channel)\r\n- [ ] DropDownList\r\n- [ ] EnvelopeEditor\r\n- [ ] List\r\n- [ ] ListSelect\r\n- [ ] Matrix\r\n- [ ] RangeSlider\r\n- [ ] Slider\r\n- [ ] TextBox\r\n- [ ] TextEdit\r\n- [ ] TitleBar\r\n\r\n@clicketyclack I haven't added all widgets to this yet, but maybe we can merge this anyway for now as I believe all the primitives are demo'd and they're probably the most important ones for testing on your fork? Interested to see how similar the examples are on your fork!\r\n\r\nNote: While putting this together I noticed that the Scroll event in the `conrod::backend::glutin` is broken (it always scrolls downwards by big jumps, despite the direction of input), but that could probably be fixed in a follow up PR.","created_at":"2016-11-02T08:16:25Z","updated_at":"2016-11-03T16:13:05Z","closed_at":"2016-11-03T16:13:04Z","merged_at":"2016-11-03T16:13:04Z","merge_commit_sha":"ff672c935e176f2b5744f65fb82ea447d2acda5c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851/commits","review_comments_url":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851/comments","review_comment_url":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/851/comments","statuses_url":"https://api.github.com/repos/PistonDevelopers/conrod/statuses/fd5b2fa72037aeb6bd7a789be3bb4864a2ea0e3b","head":{"label":"mitchmindtree:all_widgets","ref":"all_widgets","sha":"fd5b2fa72037aeb6bd7a789be3bb4864a2ea0e3b","user":{"login":"mitchmindtree","id":4587373,"avatar_url":"https://avatars.githubusercontent.com/u/4587373?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchmindtree","html_url":"https://github.com/mitchmindtree","followers_url":"https://api.github.com/users/mitchmindtree/followers","following_url":"https://api.github.com/users/mitchmindtree/following{/other_user}","gists_url":"https://api.github.com/users/mitchmindtree/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchmindtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchmindtree/subscriptions","organizations_url":"https://api.github.com/users/mitchmindtree/orgs","repos_url":"https://api.github.com/users/mitchmindtree/repos","events_url":"https://api.github.com/users/mitchmindtree/events{/privacy}","received_events_url":"https://api.github.com/users/mitchmindtree/received_events","type":"User","site_admin":false},"repo":{"id":22748504,"name":"conrod","full_name":"mitchmindtree/conrod","owner":{"login":"mitchmindtree","id":4587373,"avatar_url":"https://avatars.githubusercontent.com/u/4587373?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchmindtree","html_url":"https://github.com/mitchmindtree","followers_url":"https://api.github.com/users/mitchmindtree/followers","following_url":"https://api.github.com/users/mitchmindtree/following{/other_user}","gists_url":"https://api.github.com/users/mitchmindtree/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchmindtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchmindtree/subscriptions","organizations_url":"https://api.github.com/users/mitchmindtree/orgs","repos_url":"https://api.github.com/users/mitchmindtree/repos","events_url":"https://api.github.com/users/mitchmindtree/events{/privacy}","received_events_url":"https://api.github.com/users/mitchmindtree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitchmindtree/conrod","description":"An easy-to-use, 2D GUI library written entirely in Rust.","fork":true,"url":"https://api.github.com/repos/mitchmindtree/conrod","forks_url":"https://api.github.com/repos/mitchmindtree/conrod/forks","keys_url":"https://api.github.com/repos/mitchmindtree/conrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitchmindtree/conrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitchmindtree/conrod/teams","hooks_url":"https://api.github.com/repos/mitchmindtree/conrod/hooks","issue_events_url":"https://api.github.com/repos/mitchmindtree/conrod/issues/events{/number}","events_url":"https://api.github.com/repos/mitchmindtree/conrod/events","assignees_url":"https://api.github.com/repos/mitchmindtree/conrod/assignees{/user}","branches_url":"https://api.github.com/repos/mitchmindtree/conrod/branches{/branch}","tags_url":"https://api.github.com/repos/mitchmindtree/conrod/tags","blobs_url":"https://api.github.com/repos/mitchmindtree/conrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitchmindtree/conrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitchmindtree/conrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitchmindtree/conrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitchmindtree/conrod/statuses/{sha}","languages_url":"https://api.github.com/repos/mitchmindtree/conrod/languages","stargazers_url":"https://api.github.com/repos/mitchmindtree/conrod/stargazers","contributors_url":"https://api.github.com/repos/mitchmindtree/conrod/contributors","subscribers_url":"https://api.github.com/repos/mitchmindtree/conrod/subscribers","subscription_url":"https://api.github.com/repos/mitchmindtree/conrod/subscription","commits_url":"https://api.github.com/repos/mitchmindtree/conrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitchmindtree/conrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitchmindtree/conrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitchmindtree/conrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitchmindtree/conrod/contents/{+path}","compare_url":"https://api.github.com/repos/mitchmindtree/conrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitchmindtree/conrod/merges","archive_url":"https://api.github.com/repos/mitchmindtree/conrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitchmindtree/conrod/downloads","issues_url":"https://api.github.com/repos/mitchmindtree/conrod/issues{/number}","pulls_url":"https://api.github.com/repos/mitchmindtree/conrod/pulls{/number}","milestones_url":"https://api.github.com/repos/mitchmindtree/conrod/milestones{/number}","notifications_url":"https://api.github.com/repos/mitchmindtree/conrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitchmindtree/conrod/labels{/name}","releases_url":"https://api.github.com/repos/mitchmindtree/conrod/releases{/id}","deployments_url":"https://api.github.com/repos/mitchmindtree/conrod/deployments","created_at":"2014-08-08T06:43:00Z","updated_at":"2016-10-22T09:47:11Z","pushed_at":"2016-11-02T09:10:18Z","git_url":"git://github.com/mitchmindtree/conrod.git","ssh_url":"git@github.com:mitchmindtree/conrod.git","clone_url":"https://github.com/mitchmindtree/conrod.git","svn_url":"https://github.com/mitchmindtree/conrod","homepage":"","size":4998,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"PistonDevelopers:master","ref":"master","sha":"f0edb8d617eef80530497742a4c86924fe064b47","user":{"login":"PistonDevelopers","id":7623406,"avatar_url":"https://avatars.githubusercontent.com/u/7623406?v=3","gravatar_id":"","url":"https://api.github.com/users/PistonDevelopers","html_url":"https://github.com/PistonDevelopers","followers_url":"https://api.github.com/users/PistonDevelopers/followers","following_url":"https://api.github.com/users/PistonDevelopers/following{/other_user}","gists_url":"https://api.github.com/users/PistonDevelopers/gists{/gist_id}","starred_url":"https://api.github.com/users/PistonDevelopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PistonDevelopers/subscriptions","organizations_url":"https://api.github.com/users/PistonDevelopers/orgs","repos_url":"https://api.github.com/users/PistonDevelopers/repos","events_url":"https://api.github.com/users/PistonDevelopers/events{/privacy}","received_events_url":"https://api.github.com/users/PistonDevelopers/received_events","type":"Organization","site_admin":false},"repo":{"id":20829815,"name":"conrod","full_name":"PistonDevelopers/conrod","owner":{"login":"PistonDevelopers","id":7623406,"avatar_url":"https://avatars.githubusercontent.com/u/7623406?v=3","gravatar_id":"","url":"https://api.github.com/users/PistonDevelopers","html_url":"https://github.com/PistonDevelopers","followers_url":"https://api.github.com/users/PistonDevelopers/followers","following_url":"https://api.github.com/users/PistonDevelopers/following{/other_user}","gists_url":"https://api.github.com/users/PistonDevelopers/gists{/gist_id}","starred_url":"https://api.github.com/users/PistonDevelopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PistonDevelopers/subscriptions","organizations_url":"https://api.github.com/users/PistonDevelopers/orgs","repos_url":"https://api.github.com/users/PistonDevelopers/repos","events_url":"https://api.github.com/users/PistonDevelopers/events{/privacy}","received_events_url":"https://api.github.com/users/PistonDevelopers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PistonDevelopers/conrod","description":"An easy-to-use, 2D GUI library written entirely in Rust.","fork":false,"url":"https://api.github.com/repos/PistonDevelopers/conrod","forks_url":"https://api.github.com/repos/PistonDevelopers/conrod/forks","keys_url":"https://api.github.com/repos/PistonDevelopers/conrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PistonDevelopers/conrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PistonDevelopers/conrod/teams","hooks_url":"https://api.github.com/repos/PistonDevelopers/conrod/hooks","issue_events_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/events{/number}","events_url":"https://api.github.com/repos/PistonDevelopers/conrod/events","assignees_url":"https://api.github.com/repos/PistonDevelopers/conrod/assignees{/user}","branches_url":"https://api.github.com/repos/PistonDevelopers/conrod/branches{/branch}","tags_url":"https://api.github.com/repos/PistonDevelopers/conrod/tags","blobs_url":"https://api.github.com/repos/PistonDevelopers/conrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PistonDevelopers/conrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PistonDevelopers/conrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/PistonDevelopers/conrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PistonDevelopers/conrod/statuses/{sha}","languages_url":"https://api.github.com/repos/PistonDevelopers/conrod/languages","stargazers_url":"https://api.github.com/repos/PistonDevelopers/conrod/stargazers","contributors_url":"https://api.github.com/repos/PistonDevelopers/conrod/contributors","subscribers_url":"https://api.github.com/repos/PistonDevelopers/conrod/subscribers","subscription_url":"https://api.github.com/repos/PistonDevelopers/conrod/subscription","commits_url":"https://api.github.com/repos/PistonDevelopers/conrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/PistonDevelopers/conrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/PistonDevelopers/conrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/PistonDevelopers/conrod/contents/{+path}","compare_url":"https://api.github.com/repos/PistonDevelopers/conrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PistonDevelopers/conrod/merges","archive_url":"https://api.github.com/repos/PistonDevelopers/conrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PistonDevelopers/conrod/downloads","issues_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues{/number}","pulls_url":"https://api.github.com/repos/PistonDevelopers/conrod/pulls{/number}","milestones_url":"https://api.github.com/repos/PistonDevelopers/conrod/milestones{/number}","notifications_url":"https://api.github.com/repos/PistonDevelopers/conrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PistonDevelopers/conrod/labels{/name}","releases_url":"https://api.github.com/repos/PistonDevelopers/conrod/releases{/id}","deployments_url":"https://api.github.com/repos/PistonDevelopers/conrod/deployments","created_at":"2014-06-14T10:25:10Z","updated_at":"2016-11-01T19:53:22Z","pushed_at":"2016-11-03T16:13:04Z","git_url":"git://github.com/PistonDevelopers/conrod.git","ssh_url":"git@github.com:PistonDevelopers/conrod.git","clone_url":"https://github.com/PistonDevelopers/conrod.git","svn_url":"https://github.com/PistonDevelopers/conrod","homepage":"","size":5770,"stargazers_count":839,"watchers_count":839,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":105,"forks":103,"open_issues":105,"watchers":839,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851"},"html":{"href":"https://github.com/PistonDevelopers/conrod/pull/851"},"issue":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/issues/851"},"comments":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/issues/851/comments"},"review_comments":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851/comments"},"review_comment":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/pulls/851/commits"},"statuses":{"href":"https://api.github.com/repos/PistonDevelopers/conrod/statuses/fd5b2fa72037aeb6bd7a789be3bb4864a2ea0e3b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mitchmindtree","id":4587373,"avatar_url":"https://avatars.githubusercontent.com/u/4587373?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchmindtree","html_url":"https://github.com/mitchmindtree","followers_url":"https://api.github.com/users/mitchmindtree/followers","following_url":"https://api.github.com/users/mitchmindtree/following{/other_user}","gists_url":"https://api.github.com/users/mitchmindtree/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchmindtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchmindtree/subscriptions","organizations_url":"https://api.github.com/users/mitchmindtree/orgs","repos_url":"https://api.github.com/users/mitchmindtree/repos","events_url":"https://api.github.com/users/mitchmindtree/events{/privacy}","received_events_url":"https://api.github.com/users/mitchmindtree/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":5,"additions":861,"deletions":483,"changed_files":5}}
{"actor":{"display_login":"mitchmindtree"}}