# LibTmux::PaneSnapshot#window

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

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

Find a pane's containing window

| Language | Equivalent |
| --- | --- |
| 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.window`](/en/java/latest/reference/io-github-libtmux-pane-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) |
| C# | [`LibTmux.Pane.Window`](/en/csharp/latest/reference/libtmux-pane-window/) (property) |
| C++ | [`libtmux::Pane::window`](/en/cxx/latest/reference/libtmux-pane-window/) (method) |
| Swift | no direct accessor; match Pane.windowID against Snapshot.windows |

No equivalent is recorded in PowerShell, Julia, Elixir or F#.
