Struct embedded_text::style::StyledTextBox
source · pub struct StyledTextBox<'a, C, F, A>{
pub text_box: TextBox<'a>,
pub style: TextBoxStyle<C, F, A>,
}Expand description
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§
source§impl<C, F, A> Dimensions for StyledTextBox<'_, C, F, A>
impl<C, F, A> Dimensions for StyledTextBox<'_, C, F, A>
source§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,
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,
source§impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, CenterAligned>
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, CenterAligned>
§type PixelIteratorState = CenterAlignedState<'a, C, F>
type PixelIteratorState = CenterAlignedState<'a, C, F>
The type of the state variable used for rendering.
source§fn create_state(&self) -> Self::PixelIteratorState
fn create_state(&self) -> Self::PixelIteratorState
Creates a new state variable.
source§impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, Justified>
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, Justified>
§type PixelIteratorState = JustifiedState<'a, C, F>
type PixelIteratorState = JustifiedState<'a, C, F>
The type of the state variable used for rendering.
source§fn create_state(&self) -> Self::PixelIteratorState
fn create_state(&self) -> Self::PixelIteratorState
Creates a new state variable.
source§impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, LeftAligned>
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, LeftAligned>
§type PixelIteratorState = LeftAlignedState<'a, C, F>
type PixelIteratorState = LeftAlignedState<'a, C, F>
The type of the state variable used for rendering.
source§fn create_state(&self) -> Self::PixelIteratorState
fn create_state(&self) -> Self::PixelIteratorState
Creates a new state variable.
source§impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, RightAligned>
impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, RightAligned>
§type PixelIteratorState = RightAlignedState<'a, C, F>
type PixelIteratorState = RightAlignedState<'a, C, F>
The type of the state variable used for rendering.
source§fn create_state(&self) -> Self::PixelIteratorState
fn create_state(&self) -> Self::PixelIteratorState
Creates a new state variable.
source§impl<C, F, A> Transform for StyledTextBox<'_, C, F, A>
impl<C, F, A> Transform for StyledTextBox<'_, C, F, A>
Auto Trait Implementations§
impl<'a, C, F, A> Freeze for StyledTextBox<'a, C, F, A>
impl<'a, C, F, A> RefUnwindSafe for StyledTextBox<'a, C, F, A>
impl<'a, C, F, A> Send for StyledTextBox<'a, C, F, A>
impl<'a, C, F, A> Sync for StyledTextBox<'a, C, F, A>
impl<'a, C, F, A> Unpin for StyledTextBox<'a, C, F, A>
impl<'a, C, F, A> UnwindSafe for StyledTextBox<'a, C, F, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more