Skip to main content

ILayoutRoot

Trait ILayoutRoot 

Source
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§

Source

fn layout_scaling(&self) -> f64

The scaling factor to use in layout.

Source

fn layout_manager(&self) -> Rc<dyn ILayoutManager>

The layout manager that lays out the tree.

Source

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".

Implementors§