[][src]Trait embedded_text::alignment::VerticalTextAlignment

pub trait VerticalTextAlignment: Copy {
    fn apply_vertical_alignment<'a, C, F, A, H>(
        cursor: &mut Cursor<F>,
        styled_text_box: &'a StyledTextBox<'a, C, F, A, Self, H>
    )
    where
        C: PixelColor,
        F: Font + Copy,
        A: HorizontalTextAlignment,
        H: HeightMode
; }

Vertical text alignment base trait.

Use implementors to parametrize TextBoxStyle and TextBoxStyleBuilder.

Required methods

fn apply_vertical_alignment<'a, C, F, A, H>(
    cursor: &mut Cursor<F>,
    styled_text_box: &'a StyledTextBox<'a, C, F, A, Self, H>
) where
    C: PixelColor,
    F: Font + Copy,
    A: HorizontalTextAlignment,
    H: HeightMode

Set the cursor's initial vertical position

Loading content...

Implementors

impl VerticalTextAlignment for BottomAligned[src]

impl VerticalTextAlignment for CenterAligned[src]

impl VerticalTextAlignment for TopAligned[src]

Loading content...