Update doc and changelog

This commit is contained in:
Alexandre Bury 2018-11-09 14:33:43 -08:00
parent 9f11d3b715
commit 8e016a7f0a
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,8 @@
### New features ### New features
- Add `EventTrigger` and update `OnEventView` to use it. - Add `EventTrigger` and update `OnEventView` to use it.
- Breaking change: "inner" callbacks for OnEventView now take the event as
extra argument.
- Add `Printer::enabled` and `EnableableView` to disable whole subtrees - Add `Printer::enabled` and `EnableableView` to disable whole subtrees
### Bugfixes ### Bugfixes
@ -56,6 +58,7 @@
### New features ### New features
- Cursive now supports third-party backends
- Add generic `ScrollView` wrapper. Removes internal scrolling behaviour from - Add generic `ScrollView` wrapper. Removes internal scrolling behaviour from
`TextView`. `TextView`.
- Callbacks sent through `Cursive::cb_sink()` are now processed instantly, - Callbacks sent through `Cursive::cb_sink()` are now processed instantly,
@ -78,6 +81,7 @@
### Changes ### Changes
- Replaced `Cursive::new()` with `Cursive::default()`
- Renamed `Vec4` to `Margins` - Renamed `Vec4` to `Margins`
- `Callbacks` cannot be created from functions that return a value - `Callbacks` cannot be created from functions that return a value
- The returned value used to be completely ignored - The returned value used to be completely ignored

View File

@ -135,7 +135,7 @@ impl<T: View> OnEventView<T> {
/// Registers a callback when the given event is ignored by the child. /// Registers a callback when the given event is ignored by the child.
/// ///
/// This is an advanced method to get more control. /// This is an advanced method to get more control.
/// [`Self::on_event()`] may be easier to use. /// [`on_event`] may be easier to use.
/// ///
/// If the child view ignores the event, `cb` will be called with the /// If the child view ignores the event, `cb` will be called with the
/// child view as argument. /// child view as argument.
@ -143,6 +143,8 @@ impl<T: View> OnEventView<T> {
/// ///
/// Chainable variant. /// Chainable variant.
/// ///
/// [`on_event`]: OnEventView::on_event()
///
/// # Examples /// # Examples
/// ///
/// ```rust /// ```rust