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. #851
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP
The old
all_widgets.rs
example has been renamed toold_demo.rs
.The idea behind this new example is to:
DemoApp
,gui
function andTheme
used into their own module so that they can be re-used between theall_widgets.rs
,glutin_glium.rs
andglutin_gfx.rs
examples. This should make it easier to get theglutin_glium.rs
andglutin_gfx.rs
examples going, as we can refer to theall_widgets.rs
as a "correct" example. Related to Draw the remainingrender::Primitive
s within theglutin_glium.rs
example #752.The 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.
The new example can be seen by cloning this fork and executing this command:
Widgets included so far:
@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!
Note: 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.