Add links to next tutorial

This commit is contained in:
Alexandre Bury 2016-09-01 08:22:40 -07:00
parent 7a4e99a5de
commit 67ba15045f
2 changed files with 6 additions and 2 deletions

View File

@ -96,7 +96,7 @@ leaving the application (you'll have to press <Ctrl-C> to kill it).
## Interactivity ## Interactivity
Let's first add a way to stop the application. We want to quit when the user Let's first add a way to stop the application. We want to quit when the user
presses the letter `<q>`. presses the letter `q`.
Cursive sends an event for every user input ; most of these are just ignored Cursive sends an event for every user input ; most of these are just ignored
and have no effect. The `Cursive` root has a [`add_global_callback`] method to and have no effect. The `Cursive` root has a [`add_global_callback`] method to
@ -127,7 +127,7 @@ fn main() {
} }
``` ```
As expected, running it show no visible change, but hitting the `<q>` key at As expected, running it show no visible change, but hitting the `q` key at
least closes the application. least closes the application.
[`add_global_callback`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_global_callback [`add_global_callback`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_global_callback
@ -175,3 +175,5 @@ fn main() {
[`TextView`]: http://gyscos.github.io/Cursive/cursive/views/struct.TextView.html [`TextView`]: http://gyscos.github.io/Cursive/cursive/views/struct.TextView.html
[`StackView`]: http://gyscos.github.io/Cursive/cursive/views/struct.StackView.html [`StackView`]: http://gyscos.github.io/Cursive/cursive/views/struct.StackView.html
[`Cursive::add_layer`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_layer [`Cursive::add_layer`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_layer
Next: [Starting with Cursive (2/3)](./tutorial_2.md)

View File

@ -213,3 +213,5 @@ Your code should now look like the one at the top of this guide.
As you've seen, the `Dialog` view is a nice way to present a `TextView`, but it As you've seen, the `Dialog` view is a nice way to present a `TextView`, but it
works with any other content. Actually, most layers you'll add will start with works with any other content. Actually, most layers you'll add will start with
a `Dialog` wrapping some other view. a `Dialog` wrapping some other view.
Next: [Starting with Cursive (3/3)](./tutorial_3.md)