Struct limn_layout::Layout
[−]
[src]
pub struct Layout { pub vars: LayoutVars, pub name: Option<String>, pub id: LayoutId, pub hidden: bool, // some fields omitted }
Represents a single item in the overall layout hierarchy with a bounding rectangle and an id.
Modifying any properties of this layout only stores those changes here, they won't affect the solver until this struct is passed to the solver.
Fields
vars: LayoutVars
name: Option<String>
id: LayoutId
Methods
impl Layout
[src]
fn new(id: LayoutId, name: Option<String>) -> Self
[src]
Creates a new Layout
.
fn layout(&mut self) -> &mut Self
[src]
fn no_container(&mut self)
[src]
Clears the container of the current Layout
.
fn set_container<T>(&mut self, container: T) where
T: LayoutContainer + 'static,
[src]
T: LayoutContainer + 'static,
Replaces the container of the current layout. The container is what determines what constraints will be added between this layout and it's children, as they are added, if any.