Struct winsafe::HIMAGELIST [−][src]
#[repr(C)]pub struct HIMAGELIST { /* fields omitted */ }
Expand description
Handle to an image list.
Implementations
Creates a new handle instance by wrapping a pointer.
This method is common to all handle types.
Consumes the handle returning the underlying raw pointer.
This method is common to all handle types.
Tells if the handle is invalid (null).
This method is common to all handle types.
Consumes the handle into an option, which is None
if the handle
pointer is null.
This method is common to all handle types.
ImageList_Add
method.
Note: A copy of the bitmap is made, and this copy is then stored. You’re still responsible for freeing the original bitmap.
Calls SHGetFileInfo
to retrieve one or more
shell file icons, then passes them to
AddIcon
.
Examples
use winsafe::{co, HIMAGELIST, SIZE};
let himgl = HIMAGELIST::Create(
SIZE::new(16, 16), co::ILC::COLOR32, 1, 1)?;
himgl.AddIconFromShell(&["mp3", "wav"])?;
himgl.Destroy()?;
ImageList_AddMasked
method.
ImageList_BeginDrag
method.
Note: Must be paired with an
HIMAGELIST::EndDrag
call.
ImageList_Create
static method.
Note: Must be paired with an
HIMAGELIST::Destroy
call.
Examples
use winsafe::{co, HIMAGELIST, SIZE};
let himgl = HIMAGELIST::Create(
SIZE::new(16, 16), co::ILC::COLOR32, 1, 1)?;
himgl.Destroy()?;
ImageList_Destroy
method.
ImageList_DragShowNolock
static method.
ImageList_GetIconSize
method.
ImageList_GetImageCount
method.
ImageList_RemoveAll
method.
ImageList_ReplaceIcon
method.
ImageList_SetImageCount
methods.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more