[−][src]Trait embedded_text::alignment::VerticalTextAlignment
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,
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]
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]
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]
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,