[][src]Trait embedded_layout::layout::linear::SecondaryAlignment

pub trait SecondaryAlignment: Alignment {
    fn measure(prev: Size, view_size: Size) -> Size;
}

Secondary alignment is used to align views perpendicular to the placement axis.

For example, use horizontal::Right to align views to the right in a vertical linear layout.

Required methods

fn measure(prev: Size, view_size: Size) -> Size

Return the combined Size of two Views, based on their alignment

Loading content...

Implementors

impl SecondaryAlignment for embedded_layout::prelude::horizontal::Center[src]

impl SecondaryAlignment for Left[src]

impl SecondaryAlignment for LeftToRight[src]

impl SecondaryAlignment for Right[src]

impl SecondaryAlignment for RightToLeft[src]

impl SecondaryAlignment for Bottom[src]

impl SecondaryAlignment for BottomToTop[src]

impl SecondaryAlignment for embedded_layout::prelude::vertical::Center[src]

impl SecondaryAlignment for Top[src]

impl SecondaryAlignment for TopToBottom[src]

Loading content...