pub struct LayoutData {
    pub margins: Margins,
    pub kind: ArrangementKind,
    pub purpose: ContentPurpose,
    pub views: HashMap<String, (Point, View)>,
    pub keymaps: Vec<CString>,
}
Expand description

Static, cacheable information for the layout

Fields

margins: Marginskind: ArrangementKindpurpose: ContentPurposeviews: HashMap<String, (Point, View)>

Point is the offset within the layout

keymaps: Vec<CString>

xkb keymaps applicable to the contained keys. Unchangeable

Implementations

Calculates size without margins

Size including margins

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.