pub struct HPALETTE(/* private fields */);
Available on crate feature
user
only.Expand description
Handle to a palette.
Trait Implementations§
Source§impl Handle for HPALETTE
impl Handle for HPALETTE
Source§const NULL: Self
const NULL: Self
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.Source§const INVALID: Self
const INVALID: Self
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moreSource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.Creates a new handle object by wrapping a pointer. Read more
Source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
Source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
Source§impl gdi_Hpalette for HPALETTE
Available on crate feature gdi
only.
impl gdi_Hpalette for HPALETTE
Available on crate feature
gdi
only.Source§fn CreatePalette(pal: &LOGPALETTE) -> SysResult<DeleteObjectPaletteGuard>
fn CreatePalette(pal: &LOGPALETTE) -> SysResult<DeleteObjectPaletteGuard>
CreatePalette
function.impl Eq for HPALETTE
impl Send for HPALETTE
impl StructuralPartialEq for HPALETTE
Auto Trait Implementations§
impl Freeze for HPALETTE
impl RefUnwindSafe for HPALETTE
impl !Sync for HPALETTE
impl Unpin for HPALETTE
impl UnwindSafe for HPALETTE
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