pub trait gdi_Hpen: Handle {
// Provided methods
fn CreatePen(
style: PS,
width: i32,
color: COLORREF
) -> SysResult<DeleteObjectGuard<HPEN>> { ... }
fn CreatePenIndirect(lp: &mut LOGPEN) -> SysResult<DeleteObjectGuard<HPEN>> { ... }
fn GetStockObject(sp: STOCK_PEN) -> SysResult<HPEN> { ... }
}
Available on crate features
kernel
and gdi
only.Expand description
This trait is enabled with the gdi
feature, and provides methods for
HPEN
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn CreatePen(
style: PS,
width: i32,
color: COLORREF
) -> SysResult<DeleteObjectGuard<HPEN>>
fn CreatePen( style: PS, width: i32, color: COLORREF ) -> SysResult<DeleteObjectGuard<HPEN>>
CreatePen
function.
sourcefn CreatePenIndirect(lp: &mut LOGPEN) -> SysResult<DeleteObjectGuard<HPEN>>
fn CreatePenIndirect(lp: &mut LOGPEN) -> SysResult<DeleteObjectGuard<HPEN>>
CreatePenIndirect
function.
sourcefn GetStockObject(sp: STOCK_PEN) -> SysResult<HPEN>
fn GetStockObject(sp: STOCK_PEN) -> SysResult<HPEN>
GetStockObject
function.
Object Safety§
This trait is not object safe.