# LibTmux::Model::WindowRef

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Model.rakumod#L172
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowref/

Value-only command target for a physical window, independent of its links.

Value-only command target for a physical window, independent of its links.

## Members

### Common operations

- [`select-layout`](/en/raku/latest/reference/libtmux-model-windowref-select-layout/) (method): Select a named layout. Serialized layouts use restore-layout instead.
- [`kill`](/en/raku/latest/reference/libtmux-model-windowref-kill/) (method): Destroy the addressed entity; retained observations remain unchanged.
- [`rename`](/en/raku/latest/reference/libtmux-model-windowref-rename/) (method): Store the exact name; refuse characters or separators the daemon would change.
- [`link`](/en/raku/latest/reference/libtmux-model-windowref-link/) (method): Add a destination placement. tmux synchronizes placements across session groups.
- [`resize`](/en/raku/latest/reference/libtmux-model-windowref-resize/) (method): Set absolute dimensions or adjust one direction; these forms cannot be mixed.
- [`rotate`](/en/raku/latest/reference/libtmux-model-windowref-rotate/) (method): Rotate panes in the layout; reverse changes the rotation direction.
- [`respawn`](/en/raku/latest/reference/libtmux-model-windowref-respawn/) (method): Restart the target's process; kill must be explicit when replacing a running process.
- [`next-layout`](/en/raku/latest/reference/libtmux-model-windowref-next-layout/) (method): Apply the next tmux layout to this physical window.
- [`inspect`](/en/raku/latest/reference/libtmux-model-windowref-inspect/) (method): Acquire a fresh graph and require exactly one observed entity with this ID.
- [`previous-layout`](/en/raku/latest/reference/libtmux-model-windowref-previous-layout/) (method): Apply the previous tmux layout to this physical window.
- [`last-pane`](/en/raku/latest/reference/libtmux-model-windowref-last-pane/) (method): Select the previous active pane in this physical window.
- [`command`](/en/raku/latest/reference/libtmux-model-windowref-command/) (method): A bounded, identity-guarded explicit command. Arguments keep tmux semantics.

### Other members

- [`entity`](/en/raku/latest/reference/libtmux-model-windowref-entity/) (method): Return the registered entity schema without I/O.
- [`hooks`](/en/raku/latest/reference/libtmux-model-windowref-hooks/) (method): Construct a value-only hook facade; its reads and writes are explicit operations.
- [`options`](/en/raku/latest/reference/libtmux-model-windowref-options/) (method): Construct a value-only option facade scoped to this captured identity.
- [`restore-layout`](/en/raku/latest/reference/libtmux-model-windowref-restore-layout/) (method): Validate and apply serialized layout bytes in the daemon's declared dialect.
- [`same-entity`](/en/raku/latest/reference/libtmux-model-windowref-same-entity/) (method): Compare scoped identity without acquiring current state.
- [`spread-layout`](/en/raku/latest/reference/libtmux-model-windowref-spread-layout/) (method): Distribute space evenly around the active pane using select-layout -E.
