Struct piet_web::WebTextLayoutBuilder
source · pub struct WebTextLayoutBuilder { /* private fields */ }Trait Implementations
sourceimpl Debug for WebTextLayoutBuilder
impl Debug for WebTextLayoutBuilder
sourceimpl TextLayoutBuilder for WebTextLayoutBuilder
impl TextLayoutBuilder for WebTextLayoutBuilder
type Out = WebTextLayout
type Out = WebTextLayout
The type of the generated
TextLayout.sourcefn alignment(self, _alignment: TextAlignment) -> Self
fn alignment(self, _alignment: TextAlignment) -> Self
Set the
TextAlignment to be used for this layout. Read moresourcefn default_attribute(self, attribute: impl Into<TextAttribute>) -> Self
fn default_attribute(self, attribute: impl Into<TextAttribute>) -> Self
Add a default
TextAttribute for this layout. Read moresourcefn range_attribute(
self,
_range: impl RangeBounds<usize>,
_attribute: impl Into<TextAttribute>
) -> Self
fn range_attribute(
self,
_range: impl RangeBounds<usize>,
_attribute: impl Into<TextAttribute>
) -> Self
Add a
TextAttribute to a range of this layout. Read moresourcefn font(self, font: FontFamily, font_size: f64) -> Self
fn font(self, font: FontFamily, font_size: f64) -> Self
A convenience method for setting the default font family and size. Read more
sourcefn text_color(self, color: Color) -> Self
fn text_color(self, color: Color) -> Self
A convenience method for setting the default text color. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WebTextLayoutBuilder
impl !Send for WebTextLayoutBuilder
impl !Sync for WebTextLayoutBuilder
impl Unpin for WebTextLayoutBuilder
impl !UnwindSafe for WebTextLayoutBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.