2020-03-18 06:35:55 +01:00
|
|
|
## Pane grid
|
2020-03-17 04:23:28 +01:00
|
|
|
|
2020-03-18 06:35:55 +01:00
|
|
|
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.)
|
2020-03-17 04:23:28 +01:00
|
|
|
|
|
|
|
|
The __[`main`]__ file contains all the code of the example.
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
2020-07-09 07:05:57 +02:00
|
|
|
<a href="https://gfycat.com/frailfreshairedaleterrier">
|
|
|
|
|
<img src="https://thumbs.gfycat.com/FrailFreshAiredaleterrier-small.gif">
|
2020-03-17 04:23:28 +01:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
2020-03-18 06:35:55 +01:00
|
|
|
cargo run --package pane_grid
|
2020-03-17 04:23:28 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|