[−][src]Struct embedded_text::style::StyledTextBox
A styled TextBox
struct.
Fields
text_box: TextBox<'a>
A TextBox
that has an associated TextBoxStyle
style: TextBoxStyle<C, F, A>
The style of the TextBox
Trait Implementations
impl<'_, C, F, A> Dimensions for StyledTextBox<'_, C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
#[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> Drawable<C> for &'a StyledTextBox<'a, C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
StyledTextBoxIterator<'a, C, F, A>: Iterator<Item = Pixel<C>>,
StyledTextBox<'a, C, F, A>: StateFactory,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
StyledTextBoxIterator<'a, C, F, A>: Iterator<Item = Pixel<C>>,
StyledTextBox<'a, C, F, A>: StateFactory,
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>
The type of the state variable used for rendering.
#[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>
The type of the state variable used for rendering.
#[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>
The type of the state variable used for rendering.
#[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,
type PixelIteratorState = RightAlignedState<'a, C, F>
The type of the state variable used for rendering.
#[must_use]fn create_state() -> Self::PixelIteratorState
[src]
impl<'_, C, F, A> Transform for StyledTextBox<'_, C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
Auto Trait Implementations
impl<'a, C, F, A> RefUnwindSafe for StyledTextBox<'a, C, F, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, C, F, A> Send for StyledTextBox<'a, C, F, A> where
A: Send,
C: Send,
F: Send,
A: Send,
C: Send,
F: Send,
impl<'a, C, F, A> Sync for StyledTextBox<'a, C, F, A> where
A: Sync,
C: Sync,
F: Sync,
A: Sync,
C: Sync,
F: Sync,
impl<'a, C, F, A> Unpin for StyledTextBox<'a, C, F, A> where
A: Unpin,
C: Unpin,
F: Unpin,
A: Unpin,
C: Unpin,
F: Unpin,
impl<'a, C, F, A> UnwindSafe for StyledTextBox<'a, C, F, A> where
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
A: UnwindSafe,
C: UnwindSafe,
F: 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>,