Struct winsafe::guard::EndPaintGuard
source · pub struct EndPaintGuard<'a, H>where
H: user_Hwnd,{ /* private fields */ }
Available on crate features
kernel
and user
only.Expand description
RAII implementation for HDC
which automatically calls
EndPaint
when the object goes out of scope.
The PAINTSTRUCT
object is stored internally, and can
be accessed through the
paintstruct
method.
Implementations§
source§impl<'a, H> EndPaintGuard<'a, H>where
H: user_Hwnd,
impl<'a, H> EndPaintGuard<'a, H>where
H: user_Hwnd,
sourcepub const unsafe fn new(hwnd: &'a H, hdc: HDC, ps: PAINTSTRUCT) -> Self
pub const unsafe fn new(hwnd: &'a H, hdc: HDC, ps: PAINTSTRUCT) -> Self
sourcepub const fn paintstruct(&self) -> &PAINTSTRUCT
pub const fn paintstruct(&self) -> &PAINTSTRUCT
Returns a reference to the internal PAINTSTRUCT
object.
Trait Implementations§
source§impl<'a, H> Deref for EndPaintGuard<'a, H>where
H: user_Hwnd,
impl<'a, H> Deref for EndPaintGuard<'a, H>where
H: user_Hwnd,
source§impl<'a, H> DerefMut for EndPaintGuard<'a, H>where
H: user_Hwnd,
impl<'a, H> DerefMut for EndPaintGuard<'a, H>where
H: user_Hwnd,
Auto Trait Implementations§
impl<'a, H> RefUnwindSafe for EndPaintGuard<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for EndPaintGuard<'a, H>where
H: Sync,
impl<'a, H> !Sync for EndPaintGuard<'a, H>
impl<'a, H> Unpin for EndPaintGuard<'a, H>
impl<'a, H> UnwindSafe for EndPaintGuard<'a, H>where
H: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more