pub trait LayoutSystem: Send + Sync {
// Required methods
fn compute_layouts(&mut self, view: &mut dyn UiLayoutView);
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
}Expand description
A trait defining a system capable of computing UI layouts.
Required Methods§
Sourcefn compute_layouts(&mut self, view: &mut dyn UiLayoutView)
fn compute_layouts(&mut self, view: &mut dyn UiLayoutView)
Computes layouts using the provided UI view.
Sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Allows mutable downcasting to concrete implementations.