iced/examples/pane_grid
Héctor Ramón Jiménez 15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
..
src Introduce center widget helper 2024-05-03 09:11:46 +02:00
Cargo.toml Use workspace dependencies and package inheritance 2023-09-04 13:08:17 +02:00
README.md Host GIFs and video examples in iced.rs 2023-09-07 05:05:43 +02:00

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.

You can run it with cargo run:

cargo run --package pane_grid