panes 0.19.0

Renderer-agnostic layout engine with declarative ergonomics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::Arc;

/// The role a decoration panel plays in the layout.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum DecorationRole {
    /// Tab-bar chrome for a tabbed preset.
    Tab,
    /// Title-bar chrome for a stacked preset.
    Title,
}

/// Metadata linking a decoration panel to the content panel it decorates.
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct DecorationMeta {
    pub role: DecorationRole,
    pub content_kind: Arc<str>,
}