Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-cxx

validate_layout

Check names, v1 saved-layout checksum, v1/v2 tree grammar and minimum cell count without I/O.

Source and package
Qualified name
libtmux::validate_layout
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/layout.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<void, CommandFailure> validate_layout(std::string_view layout, std::size_t minimum_panes = 1);

Description

Names must be valid on at least one supported tmux version; Server::validate_layouts resolves version-dependent names and requires tmux 3.8 or newer for v2 JSON layouts. Saved input, including floating-pane metadata, is retained unchanged. The v2 reader follows tmux's restricted JSON syntax. Geometry and resizing remain tmux's responsibility. Empty layouts are invalid.

Recorded calls

source calls
No call edges in the C++ model.

The C++ reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls libtmux::validate_layout.

Esc
Search in

Type to search.

Reference previewOpen reference