# LibTmux::Model::Window

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Model.rakumod#L926
- **Bases:** [`LibTmux::Model::View`](/en/raku/latest/reference/libtmux-model-view/)
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-window/

Captured physical window; session-relative indices belong to WindowLink.

Captured physical window; session-relative indices belong to WindowLink.

## Members

### Collections and queries

- [`panes`](/en/raku/latest/reference/libtmux-model-window-panes/) (method): Captured physical panes; relation traversal never acquires newer data.

### Common operations

- [`id`](/en/raku/latest/reference/libtmux-model-window-id/) (method): Captured ` window_id `; local window-id access.
- [`name`](/en/raku/latest/reference/libtmux-model-window-name/) (method): Captured ` window_name `; local text access.
- [`height`](/en/raku/latest/reference/libtmux-model-window-height/) (method): Captured ` window_height `; local uint access.
- [`width`](/en/raku/latest/reference/libtmux-model-window-width/) (method): Captured ` window_width `; local uint access.
- [`layout`](/en/raku/latest/reference/libtmux-model-window-layout/) (method): Captured ` window_layout `; local text access.
- [`active-pane`](/en/raku/latest/reference/libtmux-model-window-active-pane/) (method): The physical window's observed active pane.
- [`linked`](/en/raku/latest/reference/libtmux-model-window-linked/) (method): Captured ` window_linked `; local bool access.

### Other members

- [`decoded-layout`](/en/raku/latest/reference/libtmux-model-window-decoded-layout/) (method): Decode retained layout bytes locally, preserving unknown layout versions.
- [`links`](/en/raku/latest/reference/libtmux-model-window-links/) (method): All captured placements of this physical window, preserving repeated associations.
- [`modal-pane-id`](/en/raku/latest/reference/libtmux-model-window-modal-pane-id/) (method): Captured ` window_modal_pane `; local pane-id access.
- [`panes-count`](/en/raku/latest/reference/libtmux-model-window-panes-count/) (method): Captured ` window_panes `; local uint access.
- [`visible-layout`](/en/raku/latest/reference/libtmux-model-window-visible-layout/) (method): Captured ` window_visible_layout `; local text access.
- [`zoomed`](/en/raku/latest/reference/libtmux-model-window-zoomed/) (method): Captured ` window_zoomed_flag `; local bool access.

## Inherited members

- [`bytes`](/en/raku/latest/reference/libtmux-model-window-bytes/) (method), inherited from `LibTmux::Model::View`: Exact captured bytes, before strict text conversion or normalization.
- [`clone`](/en/raku/latest/reference/libtmux-model-window-clone/) (method), inherited from `LibTmux::Model::View`: Copy this captured value without changing its records or acquiring new data.
- [`incarnation`](/en/raku/latest/reference/libtmux-model-window-incarnation/) (method), inherited from `LibTmux::Model::View`: Return the captured daemon identity without refreshing it.
- [`new`](/en/raku/latest/reference/libtmux-model-window-new/) (method), inherited from `LibTmux::Model::View`: Refuse direct view construction; obtain this value from a Snapshot.
- [`ref`](/en/raku/latest/reference/libtmux-model-window-ref/) (method), inherited from `LibTmux::Model::View`: Construct a value-only command target without observing current daemon state.
- [`relation`](/en/raku/latest/reference/libtmux-model-window-relation/) (method), inherited from `LibTmux::Model::View`: Resolve one declared relation locally; incomplete required data raises MissingData.
- [`same-entity`](/en/raku/latest/reference/libtmux-model-window-same-entity/) (method), inherited from `LibTmux::Model::View`: Compare scoped entity identity; window links additionally require the same snapshot.
- [`snapshot`](/en/raku/latest/reference/libtmux-model-window-snapshot/) (method), inherited from `LibTmux::Model::View`: Return the retained captured graph; it owns no live transport.
- [`state`](/en/raku/latest/reference/libtmux-model-window-state/) (method), inherited from `LibTmux::Model::View`: Report availability of a declared field or relation without conflating null and unloaded data.
- [`value`](/en/raku/latest/reference/libtmux-model-window-value/) (method), inherited from `LibTmux::Model::View`: Return a decoded local field, Nil for known null, or throw MissingData for unavailable data.

## In other ports

A tmux window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window`](/en/py/latest/reference/libtmux-window/) (class) |
| Ruby | [`LibTmux::Window`](/en/ruby/latest/reference/libtmux-window-1vfx/) (class) |
| Lua | [`libtmux.Window`](/en/lua/latest/reference/libtmux-window/) (class) |
| PowerShell | [`LibTmux\Get-TmuxWindow`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/) (cmdlet). This cmdlet reads shared .NET `LibTmux.Window` placements. Use [`-Server`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Server) for all sessions or [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Session) for one session. |
| Julia | [`LibTmux.WindowSnapshot`](/en/julia/latest/reference/libtmux-windowsnapshot/) (struct). `WindowSnapshot` holds captured physical-window data. `WindowLink` records a placement in a session; actions use `WindowRef`. |
| Erlang | [`#tmux_model:window{}`](/en/erlang/latest/reference/tmux_model-window/) (struct). A physical window can have several session memberships. `window_link` holds the session-relative index and active flag. |
| Elixir | [`LibTmux.Window`](/en/elixir/latest/reference/libtmux-window/) (struct). `Window` is a physical window. `WindowLink` records its session index and active state. |
| Haskell | [`LibTmux.Snapshot.Window`](/en/haskell/latest/reference/libtmux-snapshot-t-window/) (data-type). `Window` is a detached physical window, independent of its session placements. `WindowLink` records each session, index and window binding, and operations take a generation-bound `WindowRef`. |
| Common Lisp | [`libtmux:window`](/en/lisp/latest/reference/libtmux-window-type/) (class). `window` is a physical captured window. `window-link` preserves each session placement. |
| TypeScript | [`window.Window`](/en/ts/latest/reference/window-window/) (class) |
| Rust | [`window.Window`](/en/rs/latest/reference/window-window/) (struct) |
| Go | [`tmux.Window`](/en/go/latest/reference/tmux-window/) (struct) |
| Java | [`io.github.libtmux.Window`](/en/java/latest/reference/io-github-libtmux-window-window/) (class) |
| Clojure | [`libtmux.data/windows`](/en/clojure/latest/reference/libtmux-data-windows/) (function). Traverses captured window-placement maps without I/O; the window value is a map with an explicit Java reference for effects. |
| Kotlin | [`io.github.libtmux.kotlin.Window`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window/) (class) |
| Scala | [`io.github.libtmux.scaladsl.Window`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window/) (typealias) |
| C# | [`LibTmux.Window`](/en/csharp/latest/reference/libtmux-window/) (class) |
| F# | [`LibTmux.FSharp.Window`](/en/fsharp/latest/reference/libtmux-fsharp-window/) (module). This F# module identifies shared .NET `LibTmux.Window` placements and builds deferred pane queries. `Query.list` acquires their results from tmux. |
| C++ | [`libtmux::Window`](/en/cxx/latest/reference/libtmux-window/) (class) |
| Swift | [`Window`](/en/swift/latest/reference/window/) (struct) |
| OCaml | [`Libtmux.Window.t`](/en/ocaml/latest/reference/libtmux-window-t/) (typealias). A global window can have several session placements. Window_link holds the session, index and current flag. |
| Perl | [`LibTmux::Window`](/en/perl/latest/reference/libtmux-window/) (class). Physical window identity. WindowLink owns each session/index placement. |
