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

method libtmux-dotnet

Server.IsValidLayoutCandidate

Checks a layout's syntax without contacting a server.

Source and package
Qualified name
LibTmux.Server.IsValidLayoutCandidate
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Layout.cs
static bool IsValidLayoutCandidate( string layout, int paneCount )

Description

This is the version-independent half of ValidateLayoutsAsync(): it never contacts tmux, so it cannot catch a named layout that only some daemon versions accept. Call it at parse time, before a document is otherwise trusted; call ValidateLayoutsAsync() afterward to catch a version-sensitive name.

Parameters
  • layout (string) – A custom layout string or a named layout.

  • paneCount (int) – The number of panes the layout must accommodate.

Returns

true when the checksum, cell tree and cell count are consistent for a custom layout, or the name is an unambiguous prefix of a named layout.

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.Server.IsValidLayoutCandidate.

Esc
Search in

Type to search.

Reference previewOpen reference