# libtmux::Window

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L483
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-window/

One window, as one listing saw it.

A window can be linked into more than one session; this handle carries the session it was reached through, which is the one its qualified target addresses.

Reads its own fields without touching tmux, on the same terms as `Session`.

## Members

- `kNoun` (attribute)
- `kSessionNameField` (attribute)
- `kFields` (attribute)
- `Window` (method)
- `id` (method)
- `name` (method)
- `active` (method)
- `session_id` (method): The link to the parent, carried in the row so traversal upward costs nothing until the parent itself is wanted.
- `index` (method): Position within its session, which `base-index` is free to start anywhere.
- `pane_count` (method)
- `width` (method)
- `height` (method)
- `layout` (method): An opaque token: hand it back to `select_layout` exactly as received, and do not parse its shape.
- `zoomed` (method)
- `bell` (method)
- `activity` (method)
- `linked_sessions` (method): How many sessions hold this window.
- `session_name` (method): The owning psmux route carried by Windows live snapshots.
- `target` (method): How to address this window, and the reason a window id alone will not do.
- `checked_target` (method)
- `session` (method)
- `panes` (method)
- `active_pane` (method)
- `split` (method)
- `rename` (method)
- `select_layout` (method): Rearrange the panes.
- `resize` (method)
- `next_layout` (method): Step through tmux's preset arrangements, and turn the panes within the one in use.
- `previous_layout` (method)
- `rotate` (method)
- `select_last_pane` (method): Go back to the pane that was selected before the current one, and answer with it.
- `link_to` (method): Show this window in another session as well.
- `unlink` (method): Stop showing it in the session this value came from.
- `swap_with` (method): Exchange positions with another window, keeping both ids.
- `move_to` (method): Move to another index within the same session.
- `expand` (method): Ask tmux to expand a format against this window: the same reach the session form gives, guarded the same way.
- `show_message` (method): Show a message to the clients watching this window's session.
- `select` (method)
- `kill` (method)
- `refresh` (method)
- `options` (method): Window options.
- `option` (method)
- `set_option` (method)
- `unset_option` (method)
