Struct piet_direct2d::D2DTextLayoutBuilder
source · pub struct D2DTextLayoutBuilder { /* private fields */ }
Trait Implementations§
source§impl Debug for D2DTextLayoutBuilder
impl Debug for D2DTextLayoutBuilder
source§impl TextLayoutBuilder for D2DTextLayoutBuilder
impl TextLayoutBuilder for D2DTextLayoutBuilder
§type Out = D2DTextLayout
type Out = D2DTextLayout
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 !RefUnwindSafe for D2DTextLayoutBuilder
impl !Send for D2DTextLayoutBuilder
impl !Sync for D2DTextLayoutBuilder
impl Unpin for D2DTextLayoutBuilder
impl !UnwindSafe for D2DTextLayoutBuilder
Blanket Implementations§
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.