# Pane

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Pane.swift#L3
- **Page:** https://libtmux.org/reference/swift/pane/

A tmux pane, as it was when the listing was read.

A pane belongs to one window; session membership runs through ``WindowLink``.

## Members

- `filterFieldType(_:)` (method) — The value kind an id names, or `nil` when this model does not know it.
- `filterFieldID(for:)` (method) — The stable wire id for a key path, or `nil` if the property is not filterable.
- `filterValue(_:of:)` (method) — Reads the field an id names, or `nil` if this model has no such field.
- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `id` (property) — tmux's own pane id — `%0`, `%1`.
- `incarnation` (property) — The daemon this value was read from.
- `index` (property) — Position within its window, renumbered as panes come and go.
- `width` (property) — The width tmux is drawing this pane at, in cells.
- `height` (property) — The height tmux is drawing this pane at, in cells.
- `isActive` (property) — The pane a command reaches when it names the window and stops there.
- `currentCommand` (property) — The command tmux believes is running. It reflects the foreground process, so it changes as the user works.
- `currentPath` (property) — The working directory of the process in the pane, which follows the user around rather than staying where the pane was created.
- `isAtTop` (property) — Whether the pane reaches its window's top edge. A pane can be against more than one edge, and a lone pane is against all four.
- `isAtBottom` (property) — Whether the pane reaches its window's bottom edge.
- `isAtLeft` (property) — Whether the pane reaches its window's left edge.
- `isAtRight` (property) — Whether the pane reaches its window's right edge.
- `windowID` (property) — The window this pane is in. Panes move between windows, so this is where it is now rather than where it started.
- `init(id:index:width:height:isActive:currentCommand:currentPath:isAtTop:isAtBottom:isAtLeft:isAtRight:windowID:incarnation:)` (method)
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
