windows::Win32::Graphics::DirectWrite

Trait IDWriteGdiInterop_Impl

pub trait IDWriteGdiInterop_Impl: IUnknownImpl {
    // Required methods
    fn CreateFontFromLOGFONT(
        &self,
        logfont: *const LOGFONTW,
    ) -> Result<IDWriteFont>;
    fn ConvertFontToLOGFONT(
        &self,
        font: Ref<'_, IDWriteFont>,
        logfont: *mut LOGFONTW,
        issystemfont: *mut BOOL,
    ) -> Result<()>;
    fn ConvertFontFaceToLOGFONT(
        &self,
        font: Ref<'_, IDWriteFontFace>,
        logfont: *mut LOGFONTW,
    ) -> Result<()>;
    fn CreateFontFaceFromHdc(&self, hdc: HDC) -> Result<IDWriteFontFace>;
    fn CreateBitmapRenderTarget(
        &self,
        hdc: HDC,
        width: u32,
        height: u32,
    ) -> Result<IDWriteBitmapRenderTarget>;
}

Required Methods§

fn CreateFontFromLOGFONT(&self, logfont: *const LOGFONTW) -> Result<IDWriteFont>

fn ConvertFontToLOGFONT( &self, font: Ref<'_, IDWriteFont>, logfont: *mut LOGFONTW, issystemfont: *mut BOOL, ) -> Result<()>

fn ConvertFontFaceToLOGFONT( &self, font: Ref<'_, IDWriteFontFace>, logfont: *mut LOGFONTW, ) -> Result<()>

fn CreateFontFaceFromHdc(&self, hdc: HDC) -> Result<IDWriteFontFace>

fn CreateBitmapRenderTarget( &self, hdc: HDC, width: u32, height: u32, ) -> Result<IDWriteBitmapRenderTarget>

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§