Struct rs::layout::LayoutData
source · [−]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: Margins
kind: ArrangementKind
purpose: ContentPurpose
views: HashMap<String, (Point, View)>
Point is the offset within the layout
keymaps: Vec<CString>
xkb keymaps applicable to the contained keys. Unchangeable
Implementations
sourceimpl LayoutData
impl LayoutData
sourcefn calculate_inner_size(&self) -> Size
fn calculate_inner_size(&self) -> Size
Calculates size without margins
sourcefn calculate_size(&self) -> Size
fn calculate_size(&self) -> Size
Size including margins
pub fn calculate_transformation(&self, available: Size) -> Transformation
Auto Trait Implementations
impl RefUnwindSafe for LayoutData
impl Send for LayoutData
impl Sync for LayoutData
impl Unpin for LayoutData
impl UnwindSafe for LayoutData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more