# io.github.libtmux.scaladsl.Window

- **Module:** io.github.libtmux.scaladsl
- **Package:** io.github.libtmux:libtmux-scala_3
- **Language:** Scala
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala#L12
- **Page:** https://libtmux.org/en/scala/latest/reference/io-github-libtmux-scaladsl-window/

```
opaque type Window = JavaWindow

object Window
```

One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`.

## Members

### Parent objects

- `session` (method): The session this link belongs to.
- `server` (method): The server this window lives on.

### Collections and queries

- `panes` (method): This link's panes.

### Common operations

- `split` (method): Splits this window's active pane in half, putting the new one below it.

### Other members

- `active` (method): Whether this was its session's active window.
- `activePane` (method): The pane tmux had active here.
- `applyLayout` (method): Restores an exact arrangement previously read from {@link #layout()}.
- `asJava` (method): The underlying Java window link. Opaque wrapping is free, so this never copies scope or state.
- `context` (method): The winlink this handle addresses.
- `displayPopup` (method): Shows a popup over this window, running a command in it.
- `expand` (method): Expands a tmux format in this window's context, and answers with what it came to.
- `given_CanEqual_Window_Window` (constant)
- `height` (method): The window's height, in cells.
- `hooks` (method): This window's own hooks, which every link to it shares.
- `id` (method): The underlying window id, shared by every link to it.
- `index` (method): Where this link sits in its session.
- `info` (method): The fields this capture stored.
- `kill` (method): Closes this window.
- `layout` (method): tmux's own layout for this window, in whichever form this server writes it.
- `linked` (method): Whether the underlying window is linked into more than one session.
- `linkTo` (method): Links this window into another session, so one window sits in both.
- `moveTo` (method): Moves this window into another session.
- `name` (method): The window name.
- `nextLayout` (method): Moves to the next built-in layout, as tmux's own binding does.
- `options` (method): This window's own options, which every link to it shares.
- `paneCount` (method): How many panes this link holds.
- `previousLayout` (method): Moves to the previous built-in layout, as tmux's own binding does.
- `refresh` (method): Takes a new capture and returns this winlink as it is now.
- `rename` (method): Renames this window and returns its replacement capture.
- `resizeTo` (method): Resizes this window in terminal cells.
- `respawn` (method): Kills what is running in this window and starts it again.
- `rotate` (method): Rotates the panes within this window.
- `select` (method): Makes this the active window of its session.
- `selectLayout` (method): Rearranges this window's panes into one of tmux's built-in layouts.
- `size` (method): How large the window was when captured, in terminal cells.
- `stopSynchronizingPanes` (method): Stops copying input between this window's panes.
- `synchronizePanes` (method): Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.
- `unlink` (method): Removes this link, leaving the window wherever else it is linked.
- `width` (method): The window's width, in cells.
