# LibTmux::Window::layout

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Window.pm#L8
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-window-layout/

```
sub layout($self)
```

string. Local captured data; no I/O.

## Methods

## In other ports

tmux's own description of a window's layout

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.window_layout`](/en/py/latest/reference/libtmux-window-window_layout/) (attribute) |
| Lua | [`libtmux.SnapshotWindow.layout`](/en/lua/latest/reference/libtmux-snapshotwindow-layout/) (attribute) |
| Elixir | [`LibTmux.Window.layout`](/en/elixir/latest/reference/libtmux-window-layout/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Window` |
| Rust | [`window.Window.layout`](/en/rs/latest/reference/window-window-layout/) (method) |
| Go | [`tmux.Window.Layout`](/en/go/latest/reference/tmux-window-layout/) (method) |
| Java | [`io.github.libtmux.Window.layout`](/en/java/latest/reference/io-github-libtmux-window-window-layout/) (method) |
| C# | no equivalent on `Window` |
| C++ | [`libtmux::Window::layout`](/en/cxx/latest/reference/libtmux-window-layout-srt0/) (method) |
| Swift | no equivalent on `Window` |
| OCaml | [`Libtmux.Window.layout`](/en/ocaml/latest/reference/libtmux-window-layout/) (function) |

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