mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Update doc and changelog
This commit is contained in:
parent
9f11d3b715
commit
8e016a7f0a
@ -5,6 +5,8 @@
|
||||
### New features
|
||||
|
||||
- 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
|
||||
|
||||
### Bugfixes
|
||||
@ -56,6 +58,7 @@
|
||||
|
||||
### New features
|
||||
|
||||
- Cursive now supports third-party backends
|
||||
- Add generic `ScrollView` wrapper. Removes internal scrolling behaviour from
|
||||
`TextView`.
|
||||
- Callbacks sent through `Cursive::cb_sink()` are now processed instantly,
|
||||
@ -78,6 +81,7 @@
|
||||
|
||||
### Changes
|
||||
|
||||
- Replaced `Cursive::new()` with `Cursive::default()`
|
||||
- Renamed `Vec4` to `Margins`
|
||||
- `Callbacks` cannot be created from functions that return a value
|
||||
- The returned value used to be completely ignored
|
||||
|
@ -135,7 +135,7 @@ impl<T: View> OnEventView<T> {
|
||||
/// Registers a callback when the given event is ignored by the child.
|
||||
///
|
||||
/// 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
|
||||
/// child view as argument.
|
||||
@ -143,6 +143,8 @@ impl<T: View> OnEventView<T> {
|
||||
///
|
||||
/// Chainable variant.
|
||||
///
|
||||
/// [`on_event`]: OnEventView::on_event()
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
|
Loading…
Reference in New Issue
Block a user