Trait Prop

Source
pub trait Prop:
    Area
    + Limits
    + Anchor
    + Padding {
    // Required methods
    fn rows(&self) -> &[DValue];
    fn columns(&self) -> &[DValue];
    fn spacing(&self) -> DPoint;
    fn direction(&self) -> RowDirection;
}

Required Methods§

Source

fn rows(&self) -> &[DValue]

Source

fn columns(&self) -> &[DValue]

Source

fn spacing(&self) -> DPoint

Source

fn direction(&self) -> RowDirection

Trait Implementations§

Source§

impl Desc for dyn Prop

Source§

type Props = dyn Prop

Source§

type Child = dyn Child

Source§

type Children = Vector<Option<Box<dyn Layout<<dyn Prop as Desc>::Child>>>>

Source§

fn stage<'a>( props: &Self::Props, outer_area: AbsRect, outer_limits: AbsLimits, children: &Self::Children, id: Weak<SourceID>, renderable: Option<Rc<dyn Renderable>>, window: &mut WindowState, ) -> Box<dyn Staged + 'a>

Resolves a pending layout into a resolved node, which contains a pointer to the R-tree
Source§

impl<'a, T: Prop + 'static> From<&'a T> for &'a (dyn Prop + 'static)

Source§

fn from(value: &'a T) -> Self

Converts to this type from the input type.

Implementors§