Skip to main content

LayoutSystem

Trait LayoutSystem 

pub trait LayoutSystem: Send + Sync {
    // Required methods
    fn compute_layouts(&mut self, view: &mut dyn UiLayoutView);
    fn as_any(&self) -> &(dyn Any + 'static);
    fn as_any_mut(&mut self) -> &mut (dyn Any + 'static);
}
Expand description

A trait defining a system capable of computing UI layouts.

Required Methods§

fn compute_layouts(&mut self, view: &mut dyn UiLayoutView)

Computes layouts using the provided UI view.

fn as_any(&self) -> &(dyn Any + 'static)

Allows downcasting to concrete implementations.

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Allows mutable downcasting to concrete implementations.

Implementors§