pub struct BigTextBuilder<'a> { /* private fields */ }Expand description
Builder for BigText.
Implementations§
Source§impl<'a> BigTextBuilder<'a>
impl<'a> BigTextBuilder<'a>
Sourcepub fn lines<VALUE>(&mut self, value: VALUE) -> &mut BigTextBuilder<'a>
pub fn lines<VALUE>(&mut self, value: VALUE) -> &mut BigTextBuilder<'a>
The text to display
Sourcepub fn style<VALUE>(&mut self, value: VALUE) -> &mut BigTextBuilder<'a>
pub fn style<VALUE>(&mut self, value: VALUE) -> &mut BigTextBuilder<'a>
The style of the widget
Defaults to Style::default()
Sourcepub fn pixel_size(&mut self, value: PixelSize) -> &mut BigTextBuilder<'a>
pub fn pixel_size(&mut self, value: PixelSize) -> &mut BigTextBuilder<'a>
The size of single glyphs
Defaults to PixelSize::default() (=> PixelSize::Full)
Sourcepub fn alignment(
&mut self,
value: HorizontalAlignment,
) -> &mut BigTextBuilder<'a>
pub fn alignment( &mut self, value: HorizontalAlignment, ) -> &mut BigTextBuilder<'a>
The horizontal alignment of the text
Defaults to Alignment::default() (=> Alignment::Left)
Source§impl BigTextBuilder<'_>
impl BigTextBuilder<'_>
Sourcepub fn left_aligned(&mut self) -> &mut BigTextBuilder<'_>
pub fn left_aligned(&mut self) -> &mut BigTextBuilder<'_>
Set the alignment of the text.
Sourcepub fn right_aligned(&mut self) -> &mut BigTextBuilder<'_>
pub fn right_aligned(&mut self) -> &mut BigTextBuilder<'_>
Set the alignment of the text.
Sourcepub fn centered(&mut self) -> &mut BigTextBuilder<'_>
pub fn centered(&mut self) -> &mut BigTextBuilder<'_>
Set the alignment of the text.
Trait Implementations§
Source§impl<'a> Clone for BigTextBuilder<'a>
impl<'a> Clone for BigTextBuilder<'a>
Source§fn clone(&self) -> BigTextBuilder<'a>
fn clone(&self) -> BigTextBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Default for BigTextBuilder<'a>
impl<'a> Default for BigTextBuilder<'a>
Source§fn default() -> BigTextBuilder<'a>
fn default() -> BigTextBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for BigTextBuilder<'a>
impl<'a> RefUnwindSafe for BigTextBuilder<'a>
impl<'a> Send for BigTextBuilder<'a>
impl<'a> Sync for BigTextBuilder<'a>
impl<'a> Unpin for BigTextBuilder<'a>
impl<'a> UnwindSafe for BigTextBuilder<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more