# LibTmux::WindowSnapshot#width

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

```
def width: () -> ::Integer
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A window's width in cells

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.width`](/en/py/latest/reference/libtmux-window-width/) (property) |
| Lua | [`libtmux.SnapshotWindow.width`](/en/lua/latest/reference/libtmux-snapshotwindow-width/) (attribute) |
| Elixir | [`LibTmux.Window.width`](/en/elixir/latest/reference/libtmux-window-width/) (property) |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.width`](/en/rs/latest/reference/window-window-width/) (method) |
| Go | [`tmux.Window.Width`](/en/go/latest/reference/tmux-window-width/) (method) |
| Java | no equivalent on `Window` |
| C# | [`LibTmux.Window.Width`](/en/csharp/latest/reference/libtmux-window-width/) (property) |
| C++ | [`libtmux::Window::width`](/en/cxx/latest/reference/libtmux-window-width-ncb8/) (method) |
| Swift | [`Window.width`](/en/swift/latest/reference/window-width/) (property) |

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