pub trait ILayoutRoot {
// Required methods
fn layout_scaling(&self) -> f64;
fn layout_manager(&self) -> Rc<dyn ILayoutManager>;
fn root_visual(&self) -> Ref<Layoutable>;
}Expand description
Defines the root of a tree that can be laid out.
Required Methods§
Sourcefn layout_scaling(&self) -> f64
fn layout_scaling(&self) -> f64
The scaling factor to use in layout.
Sourcefn layout_manager(&self) -> Rc<dyn ILayoutManager>
fn layout_manager(&self) -> Rc<dyn ILayoutManager>
The layout manager that lays out the tree.
Sourcefn root_visual(&self) -> Ref<Layoutable>
fn root_visual(&self) -> Ref<Layoutable>
The root layoutable.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".