summaryrefslogtreecommitdiffstats
path: root/examples/pane_grid/README.md
blob: 65357b23c025dad79de65b224eb06690c5232dbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Pane grid

A grid of panes that can be split, resized, and reorganized.

This example showcases the `PaneGrid` widget, which features:

* Vertical and horizontal splits
* Tracking of the last active pane
* Mouse-based resizing
* Drag and drop to reorganize panes
* Hotkey support
* Configurable modifier keys
* API to perform actions programmatically (`split`, `swap`, `resize`, etc.)

The __[`main`]__ file contains all the code of the example.

<div align="center">
  <img src="https://iced.rs/examples/pane_grid.gif">
</div>

You can run it with `cargo run`:
```
cargo run --package pane_grid
```

[`main`]: src/main.rs