Skip to main content

Module layout

Module layout 

Source
Expand description

The layout on the wire (13.11+, cap CAP_LAYOUT): what the interface shows and in what order (see byob_types::layout).

The engine owns the one layout: it sends crate::ServerMsg::Layout after the Welcome and whenever it changes (a client’s crate::ClientMsg::SetLayout, or the model’s ui_layout tool), to every client that lists the cap.

Structs§

Element
An element of the interface that can be shown, hidden or moved.
Layout
What the interface shows: the modes and orders that differ from the defaults.
Region
A region whose elements can be reordered.

Enums§

Show
How an element is shown.

Constants§

CAP_LAYOUT
Cap: the peer handles layout messages.
ELEMENTS
Everything the layout knows, in the order Settings lists them (and each region’s default order).
GROUPS
Where elements that aren’t in a region are, by id prefix, in the order Settings lists them.
HEADER
PRESETS
Ready-made layouts.
REGIONS
The regions that can be reordered, each listed left to right.
REPLY
TOOLBAR

Functions§

element
The element with id id.
group
The heading of the group element id is in (GROUPS).
region
The region with id id.
view_id
The id of plugin plugin’s view view in a layout.