pub struct TextBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TextBuilder<'a>
impl<'a> TextBuilder<'a>
pub fn color(self, color: impl Into<Color>) -> Self
pub fn gradient(self, start: impl Into<Color>, end: impl Into<Color>) -> Self
pub fn vertical_gradient( self, top: impl Into<Color>, bottom: impl Into<Color>, ) -> Self
pub fn gradient_direction( self, start: impl Into<Color>, end: impl Into<Color>, direction: GradientDirection, ) -> Self
pub fn word_colors<I, C>(self, colors: I) -> Self
pub fn shadow(self, dx: i8, dy: i8, color: impl Into<Color>) -> Self
pub fn drop_shadow(self) -> Self
pub fn style(self, style: TextStyle) -> Self
pub fn spacing(self, adjust: i8) -> Self
pub fn align(self, align: Align) -> Self
pub fn fallback(self, mode: FallbackMode) -> Self
pub fn color_mode(self, mode: ColorMode) -> Self
pub fn build(self) -> Result<String, Error>
pub fn write_to<W: Write>(self, w: &mut W) -> Result<()>
pub fn write_to_string(self, s: &mut String) -> Result<(), Error>
pub fn build_buffer(self) -> Result<RenderBuffer, Error>
Trait Implementations§
Source§impl<'a> Clone for TextBuilder<'a>
impl<'a> Clone for TextBuilder<'a>
Source§fn clone(&self) -> TextBuilder<'a>
fn clone(&self) -> TextBuilder<'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 moreAuto Trait Implementations§
impl<'a> Freeze for TextBuilder<'a>
impl<'a> RefUnwindSafe for TextBuilder<'a>
impl<'a> Send for TextBuilder<'a>
impl<'a> Sync for TextBuilder<'a>
impl<'a> Unpin for TextBuilder<'a>
impl<'a> UnsafeUnpin for TextBuilder<'a>
impl<'a> UnwindSafe for TextBuilder<'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