# Snapshot.panes(inWindow:)

- **Module:** Snapshot
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Snapshot.swift#L251
- **Page:** https://libtmux.org/en/swift/latest/reference/snapshot-panes(inwindow-)/

```
Snapshot.panes(inWindow:)(inWindow: FilterExpr<Window>) -> [Pane]
```

Panes whose window matches — the to-one direction, where a quantifier would say nothing.

## Raises

- `RegexMatchError`
