Skip to main content

FlowContainer

Trait FlowContainer 

Source
pub trait FlowContainer:
    Drawable
    + DynClone
    + Debug
    + 'static {
    // Required method
    fn flow(&mut self) -> &mut Flow;
}

Required Methods§

Source

fn flow(&mut self) -> &mut Flow

Trait Implementations§

Source§

impl Drawable for Box<dyn FlowContainer>

Source§

fn request_size(&self) -> RequestTree

Source§

fn build(&self, size: (f32, f32), request: RequestTree) -> SizedTree

Source§

fn draw( &self, sized: &SizedTree, offset: (f32, f32), bound: Rect, ) -> Vec<(CanvasArea, CanvasItem)>

Source§

fn name(&self) -> String

Source§

fn event(&mut self, ctx: &mut Context, sized: &SizedTree, event: Box<dyn Event>)

Implementors§