Struct embedded_text::alignment::scrolling::Scrolling [−][src]
pub struct Scrolling;
Align text to the TextBox so that the last lines are always displayed.
Scrolling alignment works well for terminal-like applications. When text fits into the bounding box, it will be top aligned. After that, rendering switches to bottom aligned, making sure the last lines are always visible.
Trait Implementations
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,
Auto Trait Implementations
impl RefUnwindSafe for Scrolling
impl RefUnwindSafe for Scrolling
impl UnwindSafe for Scrolling
impl UnwindSafe for Scrolling