Trait embedded_text::alignment::VerticalTextAlignment [−][src]
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, [src]
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
Implementors
impl VerticalTextAlignment for BottomAligned[src]
impl VerticalTextAlignment for BottomAligned[src]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, [src]
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,
impl VerticalTextAlignment for CenterAligned[src]
impl VerticalTextAlignment for CenterAligned[src]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, [src]
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,
impl VerticalTextAlignment for Scrolling[src]
impl VerticalTextAlignment for Scrolling[src]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, [src]
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,
impl VerticalTextAlignment for TopAligned[src]
impl VerticalTextAlignment for TopAligned[src]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, [src]
_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,