pub struct CoreGraphicsTextLayoutBuilder { /* private fields */ }
Expand description
Building text layouts for CoreGraphics
.
Trait Implementations§
Source§impl TextLayoutBuilder for CoreGraphicsTextLayoutBuilder
impl TextLayoutBuilder for CoreGraphicsTextLayoutBuilder
Source§type Out = CoreGraphicsTextLayout
type Out = CoreGraphicsTextLayout
The type of the generated
TextLayout
.Source§fn alignment(self, alignment: TextAlignment) -> Self
fn alignment(self, alignment: TextAlignment) -> Self
Set the
TextAlignment
to be used for this layout.Source§fn 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 moreSource§fn 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 moreSource§fn 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
Source§fn 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 Freeze for CoreGraphicsTextLayoutBuilder
impl !RefUnwindSafe for CoreGraphicsTextLayoutBuilder
impl !Send for CoreGraphicsTextLayoutBuilder
impl !Sync for CoreGraphicsTextLayoutBuilder
impl Unpin for CoreGraphicsTextLayoutBuilder
impl !UnwindSafe for CoreGraphicsTextLayoutBuilder
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.