[][src]Trait embedded_layout::VerticalAlignment

pub trait VerticalAlignment: Copy + Clone {
    fn align(&self, what: &impl Dimensions, reference: &impl Dimensions) -> i32;
}

Implement this trait for vertical alignment algorithms

Vertical alignment assumes lower coordinate values are higher up

Required methods

fn align(&self, what: &impl Dimensions, reference: &impl Dimensions) -> i32

Loading content...

Implementors

impl VerticalAlignment for Bottom[src]

impl VerticalAlignment for BottomToTop[src]

impl VerticalAlignment for Center[src]

impl VerticalAlignment for NoAlignment[src]

impl VerticalAlignment for Top[src]

impl VerticalAlignment for TopToBottom[src]

Loading content...