[][src]Trait kludgine::ui::LayoutSolver

pub trait LayoutSolver: Send + Sync + Debug {
#[must_use]    fn layout_within<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        bounds: &'life1 Rect<f32, Scaled>,
        content_size: &'life2 Size<f32, Scaled>,
        context: &'life3 mut LayoutContext
    ) -> Pin<Box<dyn Future<Output = KludgineResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn layout_within<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    bounds: &'life1 Rect<f32, Scaled>,
    content_size: &'life2 Size<f32, Scaled>,
    context: &'life3 mut LayoutContext
) -> Pin<Box<dyn Future<Output = KludgineResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl LayoutSolver for AbsoluteLayout[src]

impl LayoutSolver for NoLayout[src]

Loading content...