[−][src]Trait embedded_text::rendering::StateFactory
This trait is used to associate a state type to a horizontal alignment option.
Implementing this trait is only necessary when creating new alignment algorithms.
Associated Types
type PixelIteratorState
The type of the state variable used for rendering.
Required methods
fn create_state(
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
Creates a new state variable.
Implementors
impl<'a, C, F, V, H> StateFactory<'a, F> for StyledTextBox<'a, C, F, CenterAligned, V, H> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
[src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
type PixelIteratorState = State<'a, C, F>
#[must_use]fn create_state(
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
[src]
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
impl<'a, C, F, V, H> StateFactory<'a, F> for StyledTextBox<'a, C, F, Justified, V, H> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
[src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
type PixelIteratorState = State<'a, C, F>
#[must_use]fn create_state(
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
[src]
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
impl<'a, C, F, V, H> StateFactory<'a, F> for StyledTextBox<'a, C, F, LeftAligned, V, H> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
[src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
type PixelIteratorState = State<'a, C, F>
#[must_use]fn create_state(
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
[src]
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
impl<'a, C, F, V, H> StateFactory<'a, F> for StyledTextBox<'a, C, F, RightAligned, V, H> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
[src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
H: HeightMode,
type PixelIteratorState = State<'a, C, F>
#[must_use]fn create_state(
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState
[src]
&self,
cursor: Cursor<F>,
parser: Parser<'a>
) -> Self::PixelIteratorState