# LibTmux::PaneSnapshot#window

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/snapshot.rb#L152
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-panesnapshot-window/

```
def window: () -> ::LibTmux::WindowSnapshot
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### Find a pane's containing window

- Python: [`libtmux.Pane.window`](/en/py/latest/reference/libtmux-pane-window/) (property)
- Lua: [`libtmux.SnapshotPane.window`](/en/lua/latest/reference/libtmux-snapshotpane-window/) (attribute)
- TypeScript: [`pane.Pane.window`](/en/ts/latest/reference/pane-pane-window/) (method)
- Rust: [`pane.Pane.window`](/en/rs/latest/reference/pane-pane-window/) (method)
- Go: [`tmux.Pane.Window`](/en/go/latest/reference/tmux-pane-window/) (method)
- Java: [`io.github.libtmux.Pane.Pane.window`](/en/java/latest/reference/io-github-libtmux-pane-pane-window/) (method)
- C#: [`LibTmux.Pane.Window`](/en/csharp/latest/reference/libtmux-pane-window/) (property)
- C++: [`libtmux::Pane::window`](/en/cxx/latest/reference/libtmux-pane-window/) (method)
- Kotlin: [`io.github.libtmux.kotlin.Pane.window`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-pane-window/) (property)
- Scala: [`io.github.libtmux.scaladsl.Pane.window`](/en/scala/latest/reference/io-github-libtmux-scaladsl-pane-window/) (method)
