pub trait gdi_Hrgn: Handle {
// Provided methods
fn CreateRectRgn(bounds: RECT) -> SysResult<DeleteObjectGuard<HRGN>> { ... }
fn CreateRectRgnIndirect(rc: RECT) -> SysResult<DeleteObjectGuard<HRGN>> { ... }
fn CreateRoundRectRgn(
bounds: RECT,
size: SIZE
) -> SysResult<DeleteObjectGuard<HRGN>> { ... }
fn OffsetClipRgn(&self, x: i32, y: i32) -> SysResult<REGION> { ... }
fn OffsetRgn(&self, x: i32, y: i32) -> SysResult<REGION> { ... }
fn PtInRegion(&self, x: i32, y: i32) -> bool { ... }
fn RectInRegion(&self, rc: &RECT) -> bool { ... }
}
Available on crate features
kernel
and gdi
only.Expand description
This trait is enabled with the gdi
feature, and provides methods for
HRGN
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn CreateRectRgn(bounds: RECT) -> SysResult<DeleteObjectGuard<HRGN>>
fn CreateRectRgn(bounds: RECT) -> SysResult<DeleteObjectGuard<HRGN>>
CreateRectRgn
function.
sourcefn CreateRectRgnIndirect(rc: RECT) -> SysResult<DeleteObjectGuard<HRGN>>
fn CreateRectRgnIndirect(rc: RECT) -> SysResult<DeleteObjectGuard<HRGN>>
CreateRectRgnIndirect
function.
sourcefn CreateRoundRectRgn(
bounds: RECT,
size: SIZE
) -> SysResult<DeleteObjectGuard<HRGN>>
fn CreateRoundRectRgn( bounds: RECT, size: SIZE ) -> SysResult<DeleteObjectGuard<HRGN>>
CreateRoundRectRgn
function.
sourcefn OffsetClipRgn(&self, x: i32, y: i32) -> SysResult<REGION>
fn OffsetClipRgn(&self, x: i32, y: i32) -> SysResult<REGION>
OffsetClipRgn
function.
sourcefn PtInRegion(&self, x: i32, y: i32) -> bool
fn PtInRegion(&self, x: i32, y: i32) -> bool
PtInRegion
function.
sourcefn RectInRegion(&self, rc: &RECT) -> bool
fn RectInRegion(&self, rc: &RECT) -> bool
RectInRegion
function.
Object Safety§
This trait is not object safe.