ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{ILayoutManager, Layoutable};
use crate::Ref;
use std::rc::Rc;

/// Defines the root of a tree that can be laid out.
pub trait ILayoutRoot {
    /// The scaling factor to use in layout.
    fn layout_scaling(&self) -> f64;

    /// The layout manager that lays out the tree.
    fn layout_manager(&self) -> Rc<dyn ILayoutManager>;

    /// The root layoutable.
    fn root_visual(&self) -> Ref<Layoutable>;
}