pub struct D2DText { /* private fields */ }
Implementations§
Trait Implementations§
§impl Text for D2DText
impl Text for D2DText
§type TextLayoutBuilder = D2DTextLayoutBuilder
type TextLayoutBuilder = D2DTextLayoutBuilder
A concrete type that implements the
TextLayoutBuilder
trait.§type TextLayout = D2DTextLayout
type TextLayout = D2DTextLayout
A concrete type that implements the
TextLayout
trait.§fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
Query the platform for a font with a given name, and return a
FontFamily
object corresponding to that font, if it is found. Read more§fn load_font(&mut self, data: &[u8]) -> Result<FontFamily, Error>
fn load_font(&mut self, data: &[u8]) -> Result<FontFamily, Error>
Load the provided font data and make it available for use. Read more
§fn new_text_layout(
&mut self,
text: impl TextStorage
) -> <D2DText as Text>::TextLayoutBuilder
fn new_text_layout( &mut self, text: impl TextStorage ) -> <D2DText as Text>::TextLayoutBuilder
Create a new layout object to display the provided
text
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for D2DText
impl !Send for D2DText
impl !Sync for D2DText
impl Unpin for D2DText
impl !UnwindSafe for D2DText
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.