windows::Win32::Graphics::DirectWrite

Trait IDWriteFactory6_Impl

pub trait IDWriteFactory6_Impl: IDWriteFactory5_Impl {
    // Required methods
    fn CreateFontFaceReference(
        &self,
        fontfile: Ref<'_, IDWriteFontFile>,
        faceindex: u32,
        fontsimulations: DWRITE_FONT_SIMULATIONS,
        fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE,
        fontaxisvaluecount: u32,
    ) -> Result<IDWriteFontFaceReference1>;
    fn CreateFontResource(
        &self,
        fontfile: Ref<'_, IDWriteFontFile>,
        faceindex: u32,
    ) -> Result<IDWriteFontResource>;
    fn GetSystemFontSet(
        &self,
        includedownloadablefonts: BOOL,
    ) -> Result<IDWriteFontSet1>;
    fn GetSystemFontCollection(
        &self,
        includedownloadablefonts: BOOL,
        fontfamilymodel: DWRITE_FONT_FAMILY_MODEL,
    ) -> Result<IDWriteFontCollection2>;
    fn CreateFontCollectionFromFontSet(
        &self,
        fontset: Ref<'_, IDWriteFontSet>,
        fontfamilymodel: DWRITE_FONT_FAMILY_MODEL,
    ) -> Result<IDWriteFontCollection2>;
    fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder2>;
    fn CreateTextFormat(
        &self,
        fontfamilyname: &PCWSTR,
        fontcollection: Ref<'_, IDWriteFontCollection>,
        fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE,
        fontaxisvaluecount: u32,
        fontsize: f32,
        localename: &PCWSTR,
    ) -> Result<IDWriteTextFormat3>;
}

Required Methods§

fn CreateFontFaceReference( &self, fontfile: Ref<'_, IDWriteFontFile>, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, ) -> Result<IDWriteFontFaceReference1>

fn CreateFontResource( &self, fontfile: Ref<'_, IDWriteFontFile>, faceindex: u32, ) -> Result<IDWriteFontResource>

fn GetSystemFontSet( &self, includedownloadablefonts: BOOL, ) -> Result<IDWriteFontSet1>

fn GetSystemFontCollection( &self, includedownloadablefonts: BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, ) -> Result<IDWriteFontCollection2>

fn CreateFontCollectionFromFontSet( &self, fontset: Ref<'_, IDWriteFontSet>, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, ) -> Result<IDWriteFontCollection2>

fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder2>

fn CreateTextFormat( &self, fontfamilyname: &PCWSTR, fontcollection: Ref<'_, IDWriteFontCollection>, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: &PCWSTR, ) -> Result<IDWriteTextFormat3>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§