# LibTmux::Model::Pane.window-id

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Fields.rakumod#L76
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-pane-window-id/

```
method window-id(--> WindowId:D)
```

Captured [`window_id`](/en/tmux/latest/catalog/formats/window_id/); local window-id access.

Captured [`window_id`](/en/tmux/latest/catalog/formats/window_id/); local window-id access.

## In other ports

The id of the window holding a pane

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.window_id`](/en/py/latest/reference/libtmux-pane-window_id/) (attribute) |
| Ruby | [`LibTmux::PaneSnapshot#window_id`](/en/ruby/latest/reference/libtmux-panesnapshot-window_id/) (method) |
| Lua | [`libtmux.SnapshotPane.window_id`](/en/lua/latest/reference/libtmux-snapshotpane-window_id/) (attribute) |
| Elixir | [`LibTmux.Pane.window_id`](/en/elixir/latest/reference/libtmux-pane-window_id/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Pane` |
| Rust | [`pane.Pane.window_id`](/en/rs/latest/reference/pane-pane-window_id/) (method) |
| Go | [`tmux.Pane.WindowID`](/en/go/latest/reference/tmux-pane-windowid/) (method) |
| Java | no equivalent on `Pane` |
| C# | no equivalent on `Pane` |
| C++ | [`libtmux::Pane::window_id`](/en/cxx/latest/reference/libtmux-pane-window_id-1v4v/) (method) |
| Swift | [`Pane.windowID`](/en/swift/latest/reference/pane-windowid/) (property) |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Use pane->window->id; the public pane relationship returns the physical Window rather than a separate ID reader. |

No equivalent is recorded in PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.
