Struct embedded_text::style::builder::TextBoxStyleBuilder
source · pub struct TextBoxStyleBuilder<C, F, A>{ /* private fields */ }Expand description
Textbox style builder.
Implementations§
source§impl<C, F> TextBoxStyleBuilder<C, F, LeftAligned>
impl<C, F> TextBoxStyleBuilder<C, F, LeftAligned>
source§impl<C, F, A> TextBoxStyleBuilder<C, F, A>
impl<C, F, A> TextBoxStyleBuilder<C, F, A>
sourcepub fn text_color(self, text_color: C) -> Self
pub fn text_color(self, text_color: C) -> Self
Sets the text color.
sourcepub fn background_color(self, background_color: C) -> Self
pub fn background_color(self, background_color: C) -> Self
Sets the background color.
sourcepub fn text_style(self, text_style: TextStyle<C, F>) -> Self
pub fn text_style(self, text_style: TextStyle<C, F>) -> Self
Copies properties from an existing text style object.
sourcepub fn alignment<AA: TextAlignment>(
self,
alignment: AA,
) -> TextBoxStyleBuilder<C, F, AA>
pub fn alignment<AA: TextAlignment>( self, alignment: AA, ) -> TextBoxStyleBuilder<C, F, AA>
Sets the text alignment.
sourcepub fn build(self) -> TextBoxStyle<C, F, A>
pub fn build(self) -> TextBoxStyle<C, F, A>
Builds the text style.
Auto Trait Implementations§
impl<C, F, A> Freeze for TextBoxStyleBuilder<C, F, A>
impl<C, F, A> RefUnwindSafe for TextBoxStyleBuilder<C, F, A>
impl<C, F, A> Send for TextBoxStyleBuilder<C, F, A>
impl<C, F, A> Sync for TextBoxStyleBuilder<C, F, A>
impl<C, F, A> Unpin for TextBoxStyleBuilder<C, F, A>
impl<C, F, A> UnwindSafe for TextBoxStyleBuilder<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