windows::Win32::System::Ole

Trait IFont_Impl

pub trait IFont_Impl: IUnknownImpl {
Show 24 methods // Required methods fn Name(&self) -> Result<BSTR>; fn SetName(&self, name: &BSTR) -> Result<()>; fn Size(&self) -> Result<CY>; fn SetSize(&self, size: &CY) -> Result<()>; fn Bold(&self) -> Result<BOOL>; fn SetBold(&self, bold: BOOL) -> Result<()>; fn Italic(&self) -> Result<BOOL>; fn SetItalic(&self, italic: BOOL) -> Result<()>; fn Underline(&self) -> Result<BOOL>; fn SetUnderline(&self, underline: BOOL) -> Result<()>; fn Strikethrough(&self) -> Result<BOOL>; fn SetStrikethrough(&self, strikethrough: BOOL) -> Result<()>; fn Weight(&self) -> Result<i16>; fn SetWeight(&self, weight: i16) -> Result<()>; fn Charset(&self) -> Result<i16>; fn SetCharset(&self, charset: i16) -> Result<()>; fn hFont(&self) -> Result<HFONT>; fn Clone(&self) -> Result<IFont>; fn IsEqual(&self, pfontother: Ref<'_, IFont>) -> Result<()>; fn SetRatio(&self, cylogical: i32, cyhimetric: i32) -> Result<()>; fn QueryTextMetrics(&self, ptm: *mut TEXTMETRICW) -> Result<()>; fn AddRefHfont(&self, hfont: HFONT) -> Result<()>; fn ReleaseHfont(&self, hfont: HFONT) -> Result<()>; fn SetHdc(&self, hdc: HDC) -> Result<()>;
}

Required Methods§

fn Name(&self) -> Result<BSTR>

fn SetName(&self, name: &BSTR) -> Result<()>

fn Size(&self) -> Result<CY>

fn SetSize(&self, size: &CY) -> Result<()>

fn Bold(&self) -> Result<BOOL>

fn SetBold(&self, bold: BOOL) -> Result<()>

fn Italic(&self) -> Result<BOOL>

fn SetItalic(&self, italic: BOOL) -> Result<()>

fn Underline(&self) -> Result<BOOL>

fn SetUnderline(&self, underline: BOOL) -> Result<()>

fn Strikethrough(&self) -> Result<BOOL>

fn SetStrikethrough(&self, strikethrough: BOOL) -> Result<()>

fn Weight(&self) -> Result<i16>

fn SetWeight(&self, weight: i16) -> Result<()>

fn Charset(&self) -> Result<i16>

fn SetCharset(&self, charset: i16) -> Result<()>

fn hFont(&self) -> Result<HFONT>

fn Clone(&self) -> Result<IFont>

fn IsEqual(&self, pfontother: Ref<'_, IFont>) -> Result<()>

fn SetRatio(&self, cylogical: i32, cyhimetric: i32) -> Result<()>

fn QueryTextMetrics(&self, ptm: *mut TEXTMETRICW) -> Result<()>

fn AddRefHfont(&self, hfont: HFONT) -> Result<()>

fn ReleaseHfont(&self, hfont: HFONT) -> Result<()>

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

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§