[][src]Trait embedded_layout::prelude::Align

pub trait Align {
    fn align_to<H, V>(
        self,
        reference: &impl View,
        horizontal: H,
        vertical: V
    ) -> Self
    where
        H: HorizontalAlignment,
        V: VerticalAlignment
;
fn align_to_mut<H, V>(
        &mut self,
        reference: &impl View,
        horizontal: H,
        vertical: V
    ) -> &mut Self
    where
        H: HorizontalAlignment,
        V: VerticalAlignment
; }

This trait enables alignment operations of embedded-graphics primitives

Required methods

fn align_to<H, V>(
    self,
    reference: &impl View,
    horizontal: H,
    vertical: V
) -> Self where
    H: HorizontalAlignment,
    V: VerticalAlignment, 

Align a copy of the object to an other one using the alignment parameters as rules

fn align_to_mut<H, V>(
    &mut self,
    reference: &impl View,
    horizontal: H,
    vertical: V
) -> &mut Self where
    H: HorizontalAlignment,
    V: VerticalAlignment, 

Align the object to an other one using the alignment parameters as rules

Loading content...

Implementors

impl<T> Align for T where
    T: View
[src]

Loading content...