[−][src]Struct embedded_text::style::StyledTextBox
A styled TextBox struct.
This structure is constructed by calling the into_styled method of a TextBox object.
Use the draw method to draw the textbox on a display.
Fields
text_box: TextBox<'a>A TextBox that has an associated TextBoxStyle.
style: TextBoxStyle<C, F, A, V>The style of the TextBox.
Trait Implementations
impl<C, F, A, V, '_> Dimensions for StyledTextBox<'_, C, F, A, V> where
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment,
#[must_use]fn top_left(&self) -> Point[src]
#[must_use]fn bottom_right(&self) -> Point[src]
#[must_use]fn size(&self) -> Size[src]
impl<'a, C, F, A, V> Drawable<C> for &'a StyledTextBox<'a, C, F, A, V> where
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment,
StyledTextBoxIterator<'a, C, F, A, V>: Iterator<Item = Pixel<C>>,
StyledTextBox<'a, C, F, A, V>: StateFactory<'a, F>, [src]
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment,
StyledTextBoxIterator<'a, C, F, A, V>: Iterator<Item = Pixel<C>>,
StyledTextBox<'a, C, F, A, V>: StateFactory<'a, F>,
impl<'a, C, F, V> StateFactory<'a, F> for StyledTextBox<'a, C, F, CenterAligned, V> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
type PixelIteratorState = State<'a, C, F>
The type of the state variable used for rendering.
#[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> StateFactory<'a, F> for StyledTextBox<'a, C, F, Justified, V> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
type PixelIteratorState = State<'a, C, F>
The type of the state variable used for rendering.
#[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> StateFactory<'a, F> for StyledTextBox<'a, C, F, LeftAligned, V> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
type PixelIteratorState = State<'a, C, F>
The type of the state variable used for rendering.
#[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> StateFactory<'a, F> for StyledTextBox<'a, C, F, RightAligned, V> where
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
V: VerticalTextAlignment,
type PixelIteratorState = State<'a, C, F>
The type of the state variable used for rendering.
#[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<C, F, A, V, '_> Transform for StyledTextBox<'_, C, F, A, V> where
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment, [src]
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
V: VerticalTextAlignment,
Auto Trait Implementations
impl<'a, C, F, A, V> RefUnwindSafe for StyledTextBox<'a, C, F, A, V> where
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
V: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, C, F, A, V> Send for StyledTextBox<'a, C, F, A, V> where
A: Send,
C: Send,
F: Send,
V: Send,
A: Send,
C: Send,
F: Send,
V: Send,
impl<'a, C, F, A, V> Sync for StyledTextBox<'a, C, F, A, V> where
A: Sync,
C: Sync,
F: Sync,
V: Sync,
A: Sync,
C: Sync,
F: Sync,
V: Sync,
impl<'a, C, F, A, V> Unpin for StyledTextBox<'a, C, F, A, V> where
A: Unpin,
C: Unpin,
F: Unpin,
V: Unpin,
A: Unpin,
C: Unpin,
F: Unpin,
V: Unpin,
impl<'a, C, F, A, V> UnwindSafe for StyledTextBox<'a, C, F, A, V> where
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
V: UnwindSafe,
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,