windows::Win32::System::Ole

Trait IPicture2_Impl

pub trait IPicture2_Impl: IUnknownImpl {
Show 14 methods // Required methods fn Handle(&self) -> Result<usize>; fn hPal(&self) -> Result<usize>; fn Type(&self) -> Result<i16>; fn Width(&self) -> Result<i32>; fn Height(&self) -> Result<i32>; fn Render( &self, hdc: HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const RECT, ) -> Result<()>; fn set_hPal(&self, hpal: usize) -> Result<()>; fn CurDC(&self) -> Result<HDC>; fn SelectPicture( &self, hdcin: HDC, phdcout: *mut HDC, phbmpout: *mut usize, ) -> Result<()>; fn KeepOriginalFormat(&self) -> Result<BOOL>; fn SetKeepOriginalFormat(&self, keep: BOOL) -> Result<()>; fn PictureChanged(&self) -> Result<()>; fn SaveAsFile( &self, pstream: Ref<'_, IStream>, fsavememcopy: BOOL, ) -> Result<i32>; fn Attributes(&self) -> Result<u32>;
}

Required Methods§

fn Handle(&self) -> Result<usize>

fn hPal(&self) -> Result<usize>

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

fn Width(&self) -> Result<i32>

fn Height(&self) -> Result<i32>

fn Render( &self, hdc: HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const RECT, ) -> Result<()>

fn set_hPal(&self, hpal: usize) -> Result<()>

fn CurDC(&self) -> Result<HDC>

fn SelectPicture( &self, hdcin: HDC, phdcout: *mut HDC, phbmpout: *mut usize, ) -> Result<()>

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

fn SetKeepOriginalFormat(&self, keep: BOOL) -> Result<()>

fn PictureChanged(&self) -> Result<()>

fn SaveAsFile( &self, pstream: Ref<'_, IStream>, fsavememcopy: BOOL, ) -> Result<i32>

fn Attributes(&self) -> Result<u32>

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§