Skip to main content

LayoutItem

Trait LayoutItem 

Source
pub trait LayoutItem: Component {
    // Required method
    fn layout_node(&self) -> NodeId;
}

Required Methods§

Trait Implementations§

Source§

impl Component for Box<dyn LayoutItem>

Source§

fn view(&self) -> RenderNode

Source§

fn on_event(&mut self, event: &Event) -> EventResult

Source§

fn debug_name(&self) -> &'static str

Human-readable widget type name for the devtools tree inspector.
Source§

impl LayoutItem for Box<dyn LayoutItem>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LayoutItem for Box<dyn LayoutItem>

Implementors§