Trait winsafe::prelude::gdi_Hbitmap

source ·
pub trait gdi_Hbitmap: Handle {
    // Provided methods
    fn CreateBitmap(
        sz: SIZE,
        num_planes: u32,
        bit_count: u32,
        bits: *mut u8
    ) -> SysResult<DeleteObjectGuard<HBITMAP>> { ... }
    fn GetObject(&self, pv: &mut BITMAP) -> SysResult<()> { ... }
}
Available on crate features kernel and gdi only.
Expand description

This trait is enabled with the gdi feature, and provides methods for HBITMAP.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn CreateBitmap( sz: SIZE, num_planes: u32, bit_count: u32, bits: *mut u8 ) -> SysResult<DeleteObjectGuard<HBITMAP>>

CreateBitmap function.

source

fn GetObject(&self, pv: &mut BITMAP) -> SysResult<()>

GetObject function.

§Examples
use winsafe::{self as w, prelude::*};

let hbmp: w::HBITMAP; // initialized somewhere

let mut bitmap = w::BITMAP::default();
hbmp.GetObject(&mut bitmap)?;

Object Safety§

This trait is not object safe.

Implementors§