Win32-GUI
view release on metacpan or search on metacpan
ImageList.xs view on Meta::CPAN
HICON icon
CODE:
RETVAL = ImageList_ReplaceIcon(handle, index, icon);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetBkColor(COLOR)
# Sets the background color for an image list.
COLORREF
SetBkColor(handle, color)
HIMAGELIST handle
COLORREF color
CODE:
RETVAL = ImageList_SetBkColor(handle, color);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetDragCursorImage(INDEX, X, Y)
# Creates a new drag image by combining the specified image (typically a
# mouse cursor image) with the current drag image.
BOOL
SetDragCursorImage(handle, index, x, y)
HIMAGELIST handle
int index
int x
int y
CODE:
RETVAL = ImageList_SetDragCursorImage(handle, index, x, y);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetIconSize(CX, CY)
# Sets the dimensions of images in an image list and removes all images from the list.
BOOL
SetIconSize(handle, x, y)
HIMAGELIST handle
int x
int y
CODE:
RETVAL = ImageList_SetIconSize(handle, x, y);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetImageCount(COUNT)
# Resizes an existing image list.
BOOL
SetImageCount(handle, count)
HIMAGELIST handle
UINT count
CODE:
RETVAL = ImageList_SetImageCount(handle, count);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetOverlayImage(INDEX, OVERLAY)
# Adds a specified image to the list of images to be used as overlay masks.
BOOL
SetOverlayImage(handle, index, overlay)
HIMAGELIST handle
int index
int overlay
CODE:
RETVAL = ImageList_SetOverlayImage(handle, index, overlay);
OUTPUT:
RETVAL
# TODO : ImageList_Write
###########################################################################
# (@)METHOD:AddIcon(ICON)
# Add a icon specified by ICON (must be a Win32::GUI::Icon object).
int
AddIcon(handle, icon)
HIMAGELIST handle
HICON icon
CODE:
RETVAL = ImageList_AddIcon(handle, icon);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:Clear()
# (@)METHOD:RemoveAll()
# Removes all the images from the ImageList.
int
RemoveAll(handle)
HIMAGELIST handle
ALIAS:
Win32::GUI::ImageList::Clear = 1
CODE:
RETVAL = ImageList_RemoveAll(handle);
OUTPUT:
RETVAL
###########################################################################
###########################################################################
###########################################################################
###########################################################################
# (@)METHOD:BackColor([COLOR])
# Gets or sets the background color for the ImageList.
int
BackColor(handle,color=(COLORREF) -1)
HIMAGELIST handle
COLORREF color
CODE:
if(items == 2) {
RETVAL = ImageList_SetBkColor(handle, color);
} else
RETVAL = ImageList_GetBkColor(handle);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:Size([X, Y])
# Gets or sets the size of the images in the ImageList;
# if no parameter is given, returns a 2 element array (X, Y),
# otherwise sets the size to the given parameters.
# If X and Y is given, also removes all images from the list.
void
Size(handle,...)
HIMAGELIST handle
( run in 0.796 second using v1.01-cache-2.11-cpan-39bf76dae61 )