# Pane

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Pane.swift#L4
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
- `filterFormatField(_:)` (method): The tmux format field an id reads, or `nil` when it has no single one.
- `!=(_:_:)` (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.
- `isDead` (property): Whether the pane's configured process has exited.
- `isInputOff` (property): Whether tmux has disabled input to the pane.
- `modeCount` (property): The number of human-client modes stacked on the pane.
- `isSynchronized` (property): Whether input to this pane participates in synchronized-pane delivery.
- `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:isDead:isInputOff:modeCount:isSynchronized:currentCommand:currentPath:isAtTop:isAtBottom:isAtLeft:isAtRight:windowID:incarnation:)` (method)
- `init(from:)` (method): Creates a new instance by decoding from the given decoder.
