[−][src]Trait embedded_text::rendering::StateFactory
This trait is used to associate a state type to a horizontal alignment option.
Associated Types
type PixelIteratorState
The type of the state variable used for rendering.
Required methods
fn create_state() -> Self::PixelIteratorState
Creates a new state variable.
Implementors
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, CenterAligned> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
type PixelIteratorState = CenterAlignedState<'a, C, F>
#[must_use]fn create_state() -> Self::PixelIteratorState
[src]
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, Justified> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
type PixelIteratorState = JustifiedState<'a, C, F>
#[must_use]fn create_state() -> Self::PixelIteratorState
[src]
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, LeftAligned> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
type PixelIteratorState = LeftAlignedState<'a, C, F>
#[must_use]fn create_state() -> Self::PixelIteratorState
[src]
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, RightAligned> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,