# window.SplitDirection

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

Where a split puts the pane it makes.

## Example

```rust
use libtmux::SplitDirection;

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

// The direction names where the *new* pane lands, not which edge moves.
window.split(SplitDirection::Right).await?;
window.split(SplitDirection::Below).await?;
assert_eq!(window.panes().await?.len(), 3);

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

## Members

- `Above` (constant): Above the pane being divided.
- `Below` (constant): Below it, which is tmux's default.
- `Left` (constant): To its left.
- `Right` (constant): To its right.
