[−][src]Struct embedded_text::style::builder::TextBoxStyleBuilder
Textbox style builder.
Implementations
impl<C, F> TextBoxStyleBuilder<C, F, LeftAligned> where
C: PixelColor,
F: Font + Copy, [src]
C: PixelColor,
F: Font + Copy,
impl<C, F, A> TextBoxStyleBuilder<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment, [src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
#[must_use]pub fn text_color(self, text_color: C) -> Self[src]
Sets the text color.
#[must_use]pub fn background_color(self, background_color: C) -> Self[src]
Sets the background color.
#[must_use]pub fn text_style(self, text_style: TextStyle<C, F>) -> Self[src]
Copies properties from an existing text style object.
#[must_use]pub fn alignment<AA: TextAlignment>(
self,
alignment: AA
) -> TextBoxStyleBuilder<C, F, AA>[src]
self,
alignment: AA
) -> TextBoxStyleBuilder<C, F, AA>
Sets the text alignment.
#[must_use]pub fn build(self) -> TextBoxStyle<C, F, A>[src]
Builds the text style.
Auto Trait Implementations
impl<C, F, A> RefUnwindSafe for TextBoxStyleBuilder<C, F, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<C, F, A> Send for TextBoxStyleBuilder<C, F, A> where
A: Send,
C: Send,
F: Send,
A: Send,
C: Send,
F: Send,
impl<C, F, A> Sync for TextBoxStyleBuilder<C, F, A> where
A: Sync,
C: Sync,
F: Sync,
A: Sync,
C: Sync,
F: Sync,
impl<C, F, A> Unpin for TextBoxStyleBuilder<C, F, A> where
A: Unpin,
C: Unpin,
F: Unpin,
A: Unpin,
C: Unpin,
F: Unpin,
impl<C, F, A> UnwindSafe for TextBoxStyleBuilder<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>,