ratatui/examples/demo
Josh McKinney 082cbcbc50
feat(frame)!: Remove generic Backend parameter (#530)
This change simplifys UI code that uses the Frame type. E.g.:

```rust
fn draw<B: Backend>(frame: &mut Frame<B>) {
    // ...
}
```

Frame was generic over Backend because it stored a reference to the
terminal in the field. Instead it now directly stores the viewport area
and current buffer. These are provided at creation time and are valid
for the duration of the frame.

BREAKING CHANGE: Frame is no longer generic over Backend. Code that
accepted `Frame<Backend>` will now need to accept `Frame`. To migrate
existing code, remove any generic parameters from code that uses an
instance of a Frame. E.g. the above code becomes:

```rust
fn draw(frame: &mut Frame) {
    // ...
}
```
2023-09-25 22:30:36 -07:00
..
app.rs fix(prelude): remove widgets module from prelude (#317) 2023-07-16 09:11:59 +00:00
crossterm.rs feat(prelude): add a prelude (#304) 2023-07-10 22:59:01 +00:00
main.rs chore(features): enable building with all-features (#286) 2023-07-04 03:58:25 +00:00
termion.rs feat(prelude): add a prelude (#304) 2023-07-10 22:59:01 +00:00
termwiz.rs feat(prelude): add a prelude (#304) 2023-07-10 22:59:01 +00:00
ui.rs feat(frame)!: Remove generic Backend parameter (#530) 2023-09-25 22:30:36 -07:00