# window.ResizeDirection

- **Module:** window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/window.rs#L1790
- **Page:** https://libtmux.org/en/rs/latest/reference/window-resizedirection/

Which edge a resize moves.

## Example

```rust
use libtmux::ResizeDirection;

let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("work").await?;
let mut window = session.active_window().await?.expect("a session has a window");

// The direction names the edge that moves, so `Down` makes a window taller
// rather than shorter.
let before = window.height();
window.resize_by(ResizeDirection::Down, 3).await?;
assert!(window.height() >= before);

guard.shutdown().await?;
```

## Members

- `Up` (constant): Move the top edge up, making it taller.
- `Down` (constant): Move the bottom edge down.
- `Left` (constant): Move the left edge left.
- `Right` (constant): Move the right edge right.
