# libtmux::Window

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L394
- **Page:** https://libtmux.org/reference/cxx/libtmux-window/

## 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) — tmux's own layout description, which `select-layout` accepts back.
- `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) — Exchange positions with another window, keeping both ids.
- `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)
- `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)
