Skip to main content

byob_protocol/
layout.rs

1//! The layout on the wire (13.11+, cap [`CAP_LAYOUT`]): what the interface shows and in
2//! what order (see [`byob_types::layout`]).
3//!
4//! The engine owns the one layout: it sends [`crate::ServerMsg::Layout`] after the Welcome
5//! and whenever it changes (a client's [`crate::ClientMsg::SetLayout`], or the model's
6//! `ui_layout` tool), to every client that lists the cap.
7
8pub use byob_types::layout::{ELEMENTS, Element, GROUPS, HEADER, Layout, PRESETS, REGIONS, REPLY, Region, Show, TOOLBAR, element, group, region, view_id};
9
10/// Cap: the peer handles layout messages.
11pub const CAP_LAYOUT: &str = "layout";