# LibTmux::WindowSnapshot#width

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

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### A window's width in cells

- Python: [`libtmux.Window.width`](/en/py/latest/reference/libtmux-window-width/) (property)
- Lua: [`libtmux.SnapshotWindow.width`](/en/lua/latest/reference/libtmux-snapshotwindow-width/) (attribute)
- Rust: [`window.Window.width`](/en/rs/latest/reference/window-window-width/) (method)
- Go: [`tmux.Window.Width`](/en/go/latest/reference/tmux-window-width/) (method)
- 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)
